fisea
Usage
/** to prepare of using this
*
* ```sh
* yarn add fisea
* ```
*/
import {parse, format} from 'fisea';
or
<script src="https://unpkg.com/fisea/fisea.js"></script>
<script>
// Can use the `fisea` here.
</script>
Example by TypeScript
console.log(parse('foo:foo bar:bar bar-baz:"bar baz" hoge'));
// {foo:["foo"], bar:["bar"], "bar-baz":["bar baz"], barBaz:["bar baz"], _:["hoge"]}
console.log(
fisea.format({
foo: ['foo'],
bar: ['bar'],
'bar-baz': ['bar baz'],
barBaz: ['bar baz'],
_: ['hoge'],
}),
);
// 'foo:foo bar:bar bar-baz:"bar baz" hoge'