Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

es6-counter

toshiyukihina2MIT0.0.6

Counter module written in ES6 javascript

readme

counter

Counter class written in Javacript ES6. This is just a hello program for me.

Build Status License

Usage - API

Run command as below, and generated in docs dir.

$ npm run docs

Example

var c = new Counter();

for (let i = 0; i < 10; i++) {
  c.increment();
}
console.log(c.getValue()); //=> 10

c.decrement(); //=> 9

License

MIT