Skip to content
A parser like the search part of Github.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
src
.editorconfig
.gitignore
CHANGELOG.md
CONTRIBUTING.md
LICENSE
README.md
jest.config.js
netlify.toml
package.json
prettier.config.js
renovate.json
tsconfig.iife.json
tsconfig.json
tsconfig.main.json
tsconfig.module.json
tsconfig.types.json
tslint.json
yarn.lock

README.md

fisea

github npm:version typescript ci:status document:typedoc license browserslist code style:prettier

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'

Edit fisea

You can’t perform that action at this time.