object-fromtext

0.1.1 • Public • Published

object-fromtext

NPM

Get object from text.

const fromText = require('object-fromtext');
// fromText(<text>, [property separator=\n], [key separator==])

fromText('f1=help\nf2=load');
// {f1: 'help', f2: 'load'}
fromText('f3=find;f4=output', ';');
// {f3: 'find', f4: 'output'}
fromText('f5:continue run;f6:next window', ';', ':');
// {f5: 'continue run', f6: 'next window'}

Readme

Keywords

Package Sidebar

Install

npm i object-fromtext

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • wolfram77