@sygn/not-included-characters

1.0.0 • Public • Published

not-included-characters

Find characters in a string that do not occur in another string



const notIncludedChars = require('@sygn/not-included-characters');
const LOWER_ALPHAS = 'abcdefghijklmnopqrstuvwxyz';

// the first argument is the query, the second the 'included' characters
notIncludedChars(' finD nOt iNcluded charactErs! ', LOWER_ALPHAS).join('').trim();
// DONE!


// you can add a handler for handling type errors (see: message-events npm package)
notIncludedChars.onError(console.error);

Package Sidebar

Install

npm i @sygn/not-included-characters

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

5.09 kB

Total Files

6

Last publish

Collaborators

  • sygn