Skip to content

lazzarello/another-one

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

another-one 🔑

A library for node.js that increments a thing by one, giving you another one.

Why should I use another-one?

Regardless if you are a recovering alcoholic or simply a student counting the number of days until graduation, this library might help you keep track, by giving you another one of what you have.

Usage

var another = require('another-one');

day = 0;
day = another.one(day);
=> 1
day = another.one(day);
=> 2

alternative way to get another one if you don't have one yet.

var drink = another.one();
=> undefined
drink
=> 1

Object based way to get another 1

drink = {
  another: another.one
}

drink.another(1);
=> 2

About

A library for node.js that increments a thing by one, giving you another one.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors