Coder Social home page Coder Social logo

best-utils's Introduction

best-tools

简介:

前端 js 工具库: 封装常用的工具函数,如日期格式化、浏览器判断等,提高开发效率 该项目也可以当做一个学习 typescript 和 rollup 的途径=

如何使用:

  1. 直接下载 dist 目录下的 utils.min.js 使用,支持 UMD 通用模块规范
  2. 使用 npm 安装

浏览器:

<script src="utils.min.js"></script>
<script>
  var result = utils.isNumber(1)
</script>

npm:

npm i chenkl-utils

全部加载(webpack、RequireJS、SeaJS 等):
var utils = require("chenkl-utils")
var result = utils.isNumber(1)

es6

import utils from "chenkl-utils"
var result = utils.isNumber(1)

按需加载

import isNumber from "chenkl-utils/lib/isNumber"
var result = isNumber(1)

自动化生成文档

typedoc是一个根据 typescript 文件中注释信息,生成 typescript 应用程序或库、模块的 API 文档 的工具。你可以使用他记录如:命名空间,类,方法,方法参数等。从而使开发者很容易了解整个工具库其中的属性和方法,并且快速知道如何使用,从而提高开发效率,降低维护成本。

npm run doc

best-utils's People

Contributors

kailong502431556 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.