Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 385 Bytes

readme.md

File metadata and controls

30 lines (19 loc) · 385 Bytes

iota

A super-simple Node.js integer iterator function

Install

$ npm install iota

Usage

var iota = require('iota');

var a = iota();  // a === 0
var b = iota();  // b === 1
var c = iota();  // c === 2

iota.reset();

var d = iota(); // d === 0
var e = iota(); // e === 1

iota.set(5);

var f = iota();  // f === 5
var g = iota();  // g === 6