Home / npm packages / json5
Every file of json5@2.2.3 as published on npm: 20 files, 235 KB. Search them by exact text or regex, in milliseconds.
It uses: new Function(), the fs module.
| API | In json5 | |
|---|---|---|
| eval() runs a string as JavaScript | No | Who does |
| new Function() builds a function from a string, like eval (with or without new) | Yes: 2 files e.g. dist/index.js | See the lines |
| child_process starts other programs | No | Who does |
| process.env reads environment variables | No | Who does |
| the fs module reads and writes files | Yes: 2 files e.g. lib/cli.js | See the lines |
| http / https makes or serves HTTP requests with Node's own modules | No | Who does |
| fetch() makes HTTP requests | No | Who does |
| XMLHttpRequest makes HTTP requests the old browser way | No | Who does |
| crypto hashes, encrypts or makes random numbers | No | Who does |
| WebAssembly loads WebAssembly code | No | Who does |
| document.cookie reads or writes browser cookies | No | Who does |
| install scripts runs a script when it's installed | No | Who does |
Exact matches in the published files, so a mention in a comment counts too: open the lines to check.
| File | Size |
|---|---|
dist/index.js | 59 KB |
dist/index.mjs | 46 KB |
dist/index.min.js | 32 KB |
dist/index.min.mjs | 29 KB |
lib/parse.js | 22 KB |
lib/unicode.js | 16 KB |
README.md | 10 KB |
lib/stringify.js | 7.0 KB |
lib/stringify.d.ts | 4.2 KB |
lib/cli.js | 3.6 KB |
package.json | 1.9 KB |
LICENSE.md | 1.1 KB |
lib/util.js | 885 B |
lib/parse.d.ts | 533 B |
lib/register.js | 374 B |
lib/util.d.ts | 292 B |
lib/require.js | 163 B |
lib/index.js | 143 B |
lib/unicode.d.ts | 124 B |
lib/index.d.ts | 103 B |
Version 2.2.3 of json5 publishes 20 files of source, 235 KB in all, not counting images, fonts and source maps.
No: json5 doesn't call eval() anywhere in its published files.
No: json5 doesn't use child_process anywhere in its published files.
No: json5 has no preinstall, install or postinstall script in its package.json.
The same engine answers over your documents and repositories: exact text and regex, every match counted, from your code or your AI agent.