$ cnpm install humanize-bytes
transfer humanize size to bytes
$ npm install humanize-bytes
var bytes = require('humanize-bytes'); bytes('1kb') // => 1024 bytes(1024) // => 1024
MIT
Copyright 2013 - present © cnpmjs.org