1.0.3 • Published 5 years ago

npm-boilerplate-node v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

NPM Boilerplate Node

Build Status Test Covarage Greenkeeper Latest Version

Boilerplate for creating an NPM module for Node environment.

Installation

$ npm install npm-boilerplate-node

Usage

const foo = require("npm-boilerplate-node");

(async () => {
  const result = foo("bar");

  console.log(result);
})();

API

foo(bar, [baz])

Parameters

  • bar (String): Requires string.
  • baz (optional Object): Optional object, default to {}.

Returns

It returns a Promise which when resolved contains something.

Related

License

MIT © Risan Bagja Pradana

Using the Boilerplate

Download the boilerpate:

wget https://github.com/risan/npm-boilerplate-node/archive/master.zip \
    -O master.zip && \
    unzip master.zip && \
    mv npm-boilerplate-node-master my-package && \
    rm master.zip

Toolings:

Available scripts:

  • npm run lint: Run the linter.
  • npm run lint-fix: Apply the linter fixes.
  • npm run test: Run the tests.

Third-party services:

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago