Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

8 Commits

Repository files navigation

Seqstring: A sequential string generator for Node.js

This module helps you to generate sequential strings, it uses the new generator function in ES6.

Build Status

Installation

This module is only compatible with Node.js >= 5.x.x.

$ npm install seqstring

Usage

varSeqstring=require('seqstring');

Construct a generator, all the parameters are optional.

newSeqstring([Minimumlength],[Maximumlength],[Arrayofcharacters]);

Example using a for-loop:

vargenerator=newSeqstring(1,5,['a','b']);for(varstringofgenerator){console.log(string)// e.g. aa}

Example using .next()

vargenerator=newSeqstring();console.log(generator.next());

About

Sequential string generator implemented in Node.js using ES6 generators.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages