package
Find the size (bytes) of a serialized object
npm install json-sizeGitHub-flavored package documentation.
Across all versions, last 30 days.
52,288 in 30 days
Runtime metadata.
Tagged topics.
Find the size (bytes) of a serialized object
$ npm install --save json-sizevar jsonSize = require('json-size')
jsonSize({foo: 'bar'})
//=> 13jsonSize(value) -> numberReturns the number of bytes of the resulting JSON.
Required
Type: any
A value to stringify.
MIT © Ben Drucker