a simple and sexy version-maker
CoffeeScript JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
coffee
.gitignore
.npmignore
README.md
index.js
package.json
test.js

README.md

logo releaser npm

a minimalism style version-maker

How to install

$ npm install releaser

Usage

Sample code

var releaser = require('releaser');

// init instcance
var version = new releaser({
    devider: '.'
});

// init from string
var versionNumber = new releaser({
    version: "0.1.4"
}).number;

// update version
var newVesion = version.up(); // up to 0.0.1

// version detail
console.log(version);

// details look like:
{
  created: [Date],
  number: 2,
  version: '0.0.1',
  divider: '.'
}

Run unit-test (Mocha)

$ git clone https://github.com/turingou/releaser.git
$ cd releaser
$ npm install 
$ npm test