Strings and tokens
A module for working with strings.
Installation
npm install --save strings-and-tokens
Usage
var strings = ;var pattern = stringstokens;console; // {name: 'example', domain: 'example': ext: 'com'}
or
var strings = ;console;
You could also tokenize a string.
var strings = ;console;
This gives an array of words. A word is an object like:
{
type: 'string' or 'number',
value: string or number,
line: number
column: number
}
Testing
npm test
Requires mocha and Unexpected.