Skip to content

A simple library to determine the alert level and rules for your area

License

Notifications You must be signed in to change notification settings

Half-Shot/node-covid-alert-level

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-covid-alert-level

A simple library to determine the alert level and rules for your area

yarn add @half-shot/covid-alert-level

Example

import UkGovAreaProvider from "../src/providers/UkGov"

const ukProvider = new UkGovAreaProvider();
const result = await ukProvider.getLevelForPostalCode(DOWNING_STREET_POSTCODE);
console.log(result);
// {
//     level: "High",
//     guidanceUrl: "/guidance/local-covid-alert-level-high",
//     areaDescription: "City of Westminster"
// };

About

A simple library to determine the alert level and rules for your area

Topics

Resources

License

Stars

Watchers

Forks