Code Monkey home page Code Monkey logo

web-utils's Introduction

web-utils

前端项目常用工具包

  • 库的作用就是积累前端项目中常用的 util 工具,比如:日期格式化、数字显示的格式化、localStorage 的操作、history 的操作、正则、json等;
  • 库的实现可以翻阅代码,千言万语不如直接读代码来的踏实;
  • 库的使用方式推荐拷贝 src 目录到项目中并更改 src 目录名为 'util' 或者其他任意名称,这里 src 下面模块的依赖均以相对路径的导入方式;
  • 代码库还处于试用阶段,因此可能会有 bug;在将来的测试全部完成后,会以 tag 的方式做 release;
  • 库的更新,推荐用 DiffMerge(mac) 工具比较新发布的 src 目录与在项目中的目录,然后对应的修改项目中的代码;

依赖包说明

  • lodash: 使用了lodash中的部分方法,引入的方式为: import _isObject from 'lodash/isObject';
  • fetch 模块依赖了 whatwg-fetch@^2.0.3
  • history 模块依赖了 history@^4.6.3

本地开发说明

  • npm start 启动本地开发,需要在浏览器打开 localhost:8080 查看 mocha 测试用例的通过情况
  • npm run docs 本地开发、测试完成后,打包测试用例,一共 github pages 预览

web-utils's People

Contributors

weifei365 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.