1.0.0 • Published 5 years ago

imi-structured-item-name-parser v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

imi-structured-item-name-parser

IMI Structured Item Name parser for Javascript

このライブラリは IMI共通語彙基盤ライブラリ バージョン1.0.0 (2018年9月7日 公開, MIT ライセンス) からのフォークであり、構造化項目名のパーサ機能を単体で利用できるようにしたものです。

License

imi-structured-item-name-parser is released under the MIT License.

Installation

npm

$ npm install imi-structured-item-name-parser

browser

<script src="https://unpkg.com/imi-structured-item-name-parser/main.js"></script>

Usage

Node

const Parser = require("imi-structured-item-name-parser");
const result = Parser.parse(`...`);
console.log(JSON.stringify(result,null,2));

browser

//  API will be available in the IMIStructuredItemNameParser global object.
const result = IMIStructuredItemNameParser.parse(`...`);
console.log(JSON.stringify(result,null,2));

Compatibility

imi-structured-item-name-parser is generated by PEG.js 0.10.0, and generated parsers should run well in the following environments :

  • Node.js 0.10.0+
  • Internet Explorer 8+
  • Edge
  • Firefox
  • Chrome
  • Safari
  • Opera

(Above list is copied from https://pegjs.org/documentation#compatibility )

Changelog

1.0.0 (2019-01-16)

構造化項目名記法 バージョン1.0 に対応した初版