0.1.1 • Published 7 years ago
@pg-english/unit v0.1.1
@pg-english/unit
Process measurement units in text, or tokens.
const unit = require('@pg-english/unit');
// unit.process(<tokens>)
// unit(<text>)
// -> processed text
unit('i have 40 attograms of food');
// i have 40 1e-18 of food
unit('ram ate four tonnes of custard apples');
// ram ate four 1000000 of custard apples