Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
Node Modules Hands-on
node v8.17.0
version:
master
endpoint
share
tweet
const convert = require('convert-units'); const pluralize = require('pluralize'); let MB = convert(1024).from('Kb').to('Mb'); // MB = convert(4096).from('Kb').to('Mb'); let output = MB + " " + pluralize('megabyte', MB); console.log( output );
Loading…
no comments
sign in
to comment