Find the size (bytes) of a serialized object
$ npm install --save @freddydrodev/json-size
import jsonSize from "@freddydrodev/json-size";
jsonSize({ foo: "bar" });
//=> 13
Returns the number of bytes of the resulting JSON.
Required
Type: any
A value to stringify.
MIT © Ben Drucker