A set of simple utilities for internal usage.
$ npm installFor 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, [email protected], [email protected] and [email protected] are recommended.
Inline script is available:
$ npm testor
$ npm run karma