0.0.1 • Published 1 year ago

@freddydrodev/json-size v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

json-size Build Status

Find the size (bytes) of a serialized object

Install

$ npm install --save @freddydrodev/json-size

Usage

import jsonSize from "@freddydrodev/json-size";

jsonSize({ foo: "bar" });
//=> 13

API

jsonSize(value) -> number

Returns the number of bytes of the resulting JSON.

value

Required
Type: any

A value to stringify.

License

MIT © Ben Drucker

0.0.1

1 year ago