words-and-hyphens
Extracts unique words and hyphens from text stripping punctuation on the way.
Installation
In your project path:
npm install words-and-hyphens --save
Usage
var pattern = ; // for more information visit https://github.com/bramstein/hyphervar extractor = pattern; extractor;// -> ['and', 'full', 'My', 'of', 'punct', 'same', 'string', 'the', 'words'] extractor;// -> ['and', 'full', 'My', 'of', 'punct', 'Same', 'same', 'string', 'the', 'words'] extractor;// -> ['fi', 'fischt', 'fri', 'fritz', 'sche', 'schers'];
Contributing
Issues and Pull-requests are absolutely welcome. If you want to submit a patch, please make sure that you follow this simple rule:
All code in any code-base should look like a single person typed it, no matter how. many people contributed. — idiomatic.js
Lint with:
npm run jshint
Test with:
npm run mocha
Check code coverage with:
npm run istanbul
Then please commit with a detailed commit message.