1.0.2 • Published 9 years ago

grammarray v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

grammarray Build Status

Array to a better string.

Install

$ npm install --save grammarray

Usage

var grammarray = require('grammarray');

var arr = ['Marvin Gaye', 'Led Zeppelin', 'Bigge'];

grammarray(arr);
//=> 'Marvin Gaye, Led Zeppelin and Biggie'

grammarray(arr, {
	before: '~~ ',
	delimiter: ' and ',
	lastDelimiter: 'but also',
	after: ' ~~'
});
//=> '~~ Marvin Gaye and Led Zeppelin but also Biggie ~~'

License

MIT © David Öhlin

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.0

9 years ago