Benign javascript Download

write-ini-file 5.0.0

“Stringify and write ini to a file atomically”

Package.json declares a files allowlistCreates a directory tree synchronously
SHA-2566c1d1c9911e77536d8f9bbab4a12b2c03faddca237037e8d54748ec9f8e504f3

Evidence

Package.json declares a files allowlist package.json · lines 1–47
1{
2 "name": "write-ini-file",
3 "version": "5.0.0",
4 "description": "Stringify and write ini to a file atomically",
5 "type": "module",
6 "main": "index.js",
7 "exports": "./index.js",
8 "engines": {
9 "node": ">=22.13"
10 },
11 "files": [
12 "index.js",
13 "index.d.ts"
14 ],
15 "repository": "https://github.com/zkochan/packages/tree/main/write-ini-file",
16 "keywords": [
17 "write",
18 "ini",
⋯5 lines
24 "atomically"
25 ],
26 "author": {
27 "name": "Zoltan Kochan",
28 "email": "[email protected]",
29 "url": "https://www.kochan.io"
30 },
31 "license": "MIT",
32 "bugs": {
33 "url": "https://github.com/zkochan/write-ini-file/issues"
34 },
35 "homepage": "https://github.com/zkochan/packages/tree/main/write-ini-file#readme#readme",
36 "dependencies": {
37 "ini": "^6.0.0",
38 "write-file-atomic": "^7.0.1"
39 },
40 "devDependencies": {
41 "standard": "^17.1.2",
42 "tempfile": "^6.0.1"
43 },
44 "scripts": {
45 "test": "standard && node --test test.js"
46 }
47}
JavaScript undefined literal index.js · lines 8–15
8:36… filepath')
9 }
10
11 if (data === undefined) {
12 throw new TypeError('Expected data to stringify')
13 }
14
15 …
Creates a directory tree synchronously index.js · lines 24–30
24:44… ts)
25}
26
27export function writeIniFileSync (fp, data, opts) {
28 fs.mkdirSync(path.dirname(fp), { recursive: true })
29 main(writeFileAtomic.sync, fp, data, opts)
30}

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.