0.1.1 • Published 4 years ago

@jungleford/simple-utils v0.1.1

Weekly downloads
-
License
(MIT)
Repository
github
Last release
4 years ago

simple-utils npm (scoped)

A set of simple utilities for internal usage.

Install

$ npm install

Usage

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;

Utils

A set of utility methods.

Libs

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._;

Testing

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
0.1.1

4 years ago

0.1.0

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago