npm.io
1.0.3 • Published 6 years ago

conflux-utils

Licence
ISC
Version
1.0.3
Deps
2
Size
4 kB
Vulns
0
Weekly
0

conflux-utils

A Node.js module that has shared business logic of conflux projects.

Installation

npm install conflux-utils --save
yarn add conflux-utils
bower install conflux-utils --save

Example of Usage

Javascript
var conflux = require('conflux-utils');
var boys = conflux.getPlural('Boy');
Output should be 'Boys'
TypeScript
import { getPlural } from 'conflux-utils';
console.log(getPlural('Goose'));
Output should be 'Geese'
AMD
define(function (require, exports, module) {
  var conflux = require('conflux-utils');
});

Test

npm run test