Skip to content

egoist/romantic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Extract variables from string.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published