{"id":17419870,"url":"https://github.com/bendrucker/json-size","last_synced_at":"2025-07-11T16:43:13.232Z","repository":{"id":36439116,"uuid":"40744142","full_name":"bendrucker/json-size","owner":"bendrucker","description":"Find the size (bytes) of a serialized object","archived":false,"fork":false,"pushed_at":"2018-11-13T19:26:43.000Z","size":4,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T08:14:02.294Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bendrucker.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-15T02:40:33.000Z","updated_at":"2020-12-18T04:35:10.000Z","dependencies_parsed_at":"2022-08-24T08:31:26.325Z","dependency_job_id":null,"html_url":"https://github.com/bendrucker/json-size","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fjson-size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fjson-size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fjson-size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fjson-size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendrucker","download_url":"https://codeload.github.com/bendrucker/json-size/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248606805,"owners_count":21132417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-17T02:34:50.422Z","updated_at":"2025-04-15T00:01:54.758Z","avatar_url":"https://github.com/bendrucker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-size [![Build Status](https://travis-ci.org/bendrucker/json-size.svg?branch=master)](https://travis-ci.org/bendrucker/json-size)\n\n\u003e Find the size (bytes) of a serialized object\n\n\n## Install\n\n```\n$ npm install --save json-size\n```\n\n\n## Usage\n\n```js\nvar jsonSize = require('json-size')\n\njsonSize({foo: 'bar'})\n//=\u003e 13\n```\n\n## API\n\n#### `jsonSize(value)` -\u003e `number`\n\nReturns the number of bytes of the resulting JSON.\n\n##### value\n\n*Required*  \nType: `any`\n\nA value to stringify.\n\n\n## License\n\nMIT © [Ben Drucker](http://bendrucker.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fjson-size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendrucker%2Fjson-size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fjson-size/lists"}