romantic

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i romantic

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • kchan