0.0.2 • Published 8 years ago

words-only v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

words-only

Remove anything that isn't a word or letter from a string.

Build Status Coverage Status

Note: This is a work in progress. Testing and Pull Requests welcome.

Install

$ npm install --save words-only

Usage

const wordsOnly = require('words-only');

wordsOnly('unicorns!!!! & rainbows!!!!');
//=> 'unicorns rainbows'

API

wordsOnly(input)

input

Type: string

The string to search for words.

Notes

This module uses letterset to determine letters that belong to words. If you find that words-only is removing actual letters from your words, please open an issue on the letterset repo.

License

MIT © Michael Wuergler