@jungleford/simple-utils

0.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @jungleford/simple-utils

Weekly Downloads

0

Version

0.1.1

License

(MIT)

Unpacked Size

39.9 kB

Total Files

18

Last publish

Collaborators

  • jungleford