parsify-plugin-covid19
v0.2.0
Published
Parsify plugin, that adds COVID 19-related variables
Downloads
7
Maintainers
Readme
Parsify Plugin COVID 19
About
This plugin adds COVID 19-related variables to Parsify:
confirmed //=> returns number of confirmed cases (global)
recoveries //=> returns number of recoveries (global)
deaths //=> returns number of deaths (global)
Install
$ npm install @parsify/core @parsify/math parsify-plugin-covid19
Usage
import Parsify from '@parsify/core';
import parsifyMathPlugin, {mathParser} from '@parsify/math';
import parsifyCovid19Plugin from 'parsify-plugin-covid19';
const parsify = new Parsify([
parsifyCovid19Plugin(mathParser),
parsifyMathPlugin()
]);
Note: the plugin order is important!
API
parsifyCovid19Plugin(parser)
parser
Type: Parser
@parsify/math
exported parser.
License
MIT