A set of simple utilities for internal usage.
$ npm install
For ES6,
import {Utils, Libs} from '@jungleford/simple-utils';
For ES5,
var Utils = require('@jungleford/simple-utils').Utils;
var Libs = require('@jungleford/simple-utils').Libs;
A set of utility methods.
A wrapper of third-party libraries.
For some scenarios (e.g., WeiXin mini program), the libraries (like assert
, or _
in Lodash) couldn't be recognized. So here provides a default implementation with standard JavaScript.
const assert = Libs.assert;
const _ = Libs._;
You need a mocha or karma command line utility, for this package, mocha@5.2.0, mocha-webpack@2.0.0-beta.0 and karma@3.1.4 are recommended.
Inline script is available:
$ npm test
or
$ npm run karma