sbiger-jsutil
v1.3.32
Published
Javascript common utilities with ES6. you can build it to ES5
Downloads
16
Maintainers
Readme
sbiger-jsutil
Javascript common utilities with ES6. you can build it to ES5
Wiki/Documents is coming view wiki
Contains
Utils
StringUtils
BooleanUtils
BigNumberUtils ( Function toBigNumber() depends on the BigNumber Library)
DateUtil(beta-1)
How to use
- Install
npm install sbiger-jsutil
- Use
var jsutil = require('sbiger-jsutil') //ES6: import jsutil from 'sbiger-jsutil'
//1.
console.log(jsutil.Utils.isString('')) //true
console.log(jsutil.StringUtils.equals('','')) //true
//2.
jsutil.Utils.isString('', function(result){
//TODO
})
you can also import single library to use like this
var Utils = require('sbiger-jsutil').Utils
//ES6
import { Utils } from 'sbiger-jsutil/lib/Utils'
How to Dev
- Init
npm install
- Build ES6 ---> ES5
npm run build
- Test
npm run test