npm.io
0.2.0 • Published 7 years ago

comparative-superlative

Licence
MIT
Version
0.2.0
Deps
1
Size
4 kB
Vulns
0
Weekly
0

comparative-superlative

get the comparative or superlative of a word

installation

npm install comparative-superlative
// or
yarn add comparative-superlative

usage

const cs = require('comparative-superlative')

// cs returns an object containing both
// the comparative and superlative

cs("important");
// {
//    comparative: "more important"
//    superlative: "most important"  
// }

cs("happy")
// {
//    comparative: "happier"
//    superlative: "happiest"  
// }

init'd with skeletor