1.1.0 • Published 3 years ago

delimiter-finder v1.1.0

Weekly downloads
7
License
ISC
Repository
github
Last release
3 years ago

delimiter-finder

a utility to find words inside delimiters.


usage

create a new object with an array of delimiters.

use .find() with a string as the input. it will output an array of matches for each delimiter specified.

const DelimiterFinder = require("delimiter-finder")
const delim = new DelimiterFinder(["$", "%"])

let matches = delim.find("hello $world$, how are you %today%")
console.log(matches)

/*
	{ 
		'$': [ 'world' ], 
		'%': [ 'today' ] 
	}
*/
1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago