fisea

1.1.1 • Public • Published

Fisea

TypeScript fisea CircleCI code style: prettier donate

A parser like the search part of Github.

Install

yarn add fisea

Usage

on nodejs

import * as fisea from 'fisea';
 
fisea.parse('foo:foo bar:bar bar-baz:"bar baz" hoge');
// {foo:["foo"], bar:["bar"], "bar-baz":["bar baz"], barBaz:["bar baz"], _:["hoge"]}
fisea.format({
  foo: ['foo'],
  bar: ['bar'],
  'bar-baz': ['bar baz'],
  barBaz: ['bar baz'],
  _: ['hoge']
});
// 'foo:foo bar:bar bar-baz:"bar baz" hoge'

on browser

<script src="https://unpkg.com/fisea/dist/fisea.umd.js"></script>

Options

separator default:

install

npm i fisea

Downloadsweekly downloads

2

version

1.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability