@freddydrodev/json-size
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @freddydrodev/json-size

Weekly Downloads

1

Version

0.0.1

License

ISC

Unpacked Size

4.06 kB

Total Files

9

Last publish

Collaborators

  • freddydrodev