Skip to content

Parsify plugin, that adds COVID 19-related variables 🦠

License

Notifications You must be signed in to change notification settings

xxczaki/parsify-plugin-covid19

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parsify Plugin COVID 19

Build Status Coverage Status XO code style

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