0.7.0 • Published 5 years ago
rosee v0.7.0
rosee
Description
A MFM parser implementation with PEG.js
Installation
npm i roseeUsage
TypeScript:
import * as mfm from 'rosee';
const input =
`<center>
Hello [tada everynyan! 🎉]
I'm @ai, An bot of misskey!
https://github.com/syuilo/ai
</center>`;
// parse a MFM text
const result = mfm.parse(input);
// parse a MFM plain text
const plainResult = mfm.parsePlain('I like the hot soup :soup:');Usage (Repository)
1. Clone
git clone https://github.com/marihachi/rosee.git2. Install packages
cd rosee
npm i3. Build
npm run buildUse the interactive CLI parser
npm run parseLicense
This software is released under the MIT License.