{"id":19084694,"url":"https://github.com/wutility/json-viewer","last_synced_at":"2025-06-11T21:32:45.365Z","repository":{"id":46834848,"uuid":"227441822","full_name":"wutility/json-viewer","owner":"wutility","description":"🔥 Ultra Fast and lightweight Json Viewer and formatter \u003c3KB with 0 Dependencies","archived":false,"fork":false,"pushed_at":"2023-01-20T19:52:34.000Z","size":1120,"stargazers_count":12,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T23:59:51.312Z","etag":null,"topics":["browser","formatter","json","json-formatter","json-viewer"],"latest_commit_sha":null,"homepage":"https://wutility.github.io/json-viewer","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wutility.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-11T19:16:41.000Z","updated_at":"2025-01-23T08:32:38.000Z","dependencies_parsed_at":"2023-02-12T04:45:27.927Z","dependency_job_id":null,"html_url":"https://github.com/wutility/json-viewer","commit_stats":null,"previous_names":["haikelfazzani/json-view"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wutility%2Fjson-viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wutility%2Fjson-viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wutility%2Fjson-viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wutility%2Fjson-viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wutility","download_url":"https://codeload.github.com/wutility/json-viewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251675740,"owners_count":21625880,"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":["browser","formatter","json","json-formatter","json-viewer"],"created_at":"2024-11-09T02:52:19.403Z","updated_at":"2025-04-30T09:25:58.037Z","avatar_url":"https://github.com/wutility.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://i.ibb.co/0BYbk6V/jsnview.png\" alt=\"json viewer\"/\u003e\n\u003c/p\u003e\n\n\u003chr /\u003e\n\n\u003cdiv align=\"center\" style=\"width:100%; text-align:center;\"\u003e\n  \u003cimg src=\"https://badgen.net/bundlephobia/min/jsnview\" alt=\"json viewer\" /\u003e\n  \u003cimg src=\"https://badgen.net/bundlephobia/dependency-count/jsnview\" alt=\"json viewer\" /\u003e\n  \u003cimg src=\"https://badgen.net/npm/v/jsnview\" alt=\"json viewer\" /\u003e\n  \u003cimg src=\"https://badgen.net/npm/dt/jsnview\" alt=\"json viewer\" /\u003e\n  \u003cimg src=\"https://data.jsdelivr.com/v1/package/npm/jsnview/badge\" alt=\"json viewer\"/\u003e\n\u003c/div\u003e\n\n### Demos  \n[PLayground](https://wutility.github.io/json-viewer)  \n[Demo Codepen](https://codepen.io/haikelfazzani-the-bold/pen/bGWKEMP)  \n\n```bash\n$ npm i jsnview\n# or\n$ yarn add jsnview\n```\n\n## Usage\n```js\nimport jsnview from 'jsnview';\nimport 'jsnview/build/index.css';\n```\n\nOr include it via jsDelivr CDN (UMD):\n```html\n\u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/jsnview/build/index.css\" /\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/jsnview/build/index.min.js\"\u003e\u003c/script\u003e\n\u003c!-- Access via global object : window.jsnview --\u003e\n```\n\n### Methods \u0026\u0026 Examples\n- **jsnview(data: Object, options: Object): [HTMLElement]**  \n```js\n// Default options\nconst options = {\n  showLen: false,\n  showType: false,\n  showBrackets: true,\n  showFoldmarker: false,\n  colors: { boolean: '#ff2929', null: '#ff2929', string: '#690', number: '#905', float: '#002f99' }\n}\n\nlet data = { name: 'Mike', age: 22 }; \nconst treeView = jsnview(data, options); // returns HTMLElement\ndocument.body.appendChild(treeView);\n```\n\n### Notes\n- All pull requests are welcome, feel free.\n\n### Author\n- [Haikel Fazzani](https://github.com/haikelfazzani)\n\n## License\nApache License 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwutility%2Fjson-viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwutility%2Fjson-viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwutility%2Fjson-viewer/lists"}