0.0.1 • Published 8 years ago

romantic v0.0.1

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

romantic Build Status

Extract variables from string.

Install

$ npm install --save romantic

Usage

const Romantic = require('romantic')

const romantic = new Romantic()
const result = romantic.match(
	'hello <name> <age>',
	'hello egoist 21.4'
)
// => {
//   name: 'egoist',
//   age: '21.4'
// }

// define a custom regex pattern to match variables
const romantic = new Romantic(/your regex/g)

License

MIT © EGOIST

0.0.1

8 years ago

0.0.0

8 years ago