{"_id":"@burgrp/json-pad","name":"@burgrp/json-pad","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@burgrp/json-pad","version":"1.0.1","description":"Simple JSON persistence with filesystem watch","main":"json-pad.js","author":{"name":"Pavel Burgr","email":"pb@drake.cz"},"license":"ISC","dependencies":{"chokidar":"^2.1.2","debug":"^4.1.1","make-dir":"^2.1.0"},"keywords":["json","storage","store","persistence","persist","store","storage","watch"],"repository":{"type":"git","url":"git+https://github.com/burgrp/json-pad.git"},"_id":"@burgrp/json-pad@1.0.1","gitHead":"7f7ff8c6c7497a989aff8a14b42ea7a1d45f839e","bugs":{"url":"https://github.com/burgrp/json-pad/issues"},"homepage":"https://github.com/burgrp/json-pad#readme","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-MKB93qMXzbDwsTfbQ0yRw7Nu7t4Fpkig+d7BLxGv+RR+ExH6pACQwveLDnD+kiamQZNSnquCRxGLvj/gN6743w==","shasum":"f29fa5c35cc4887909147eb93d6e8a5c4035a338","tarball":"https://registry.npmjs.org/@burgrp/json-pad/-/json-pad-1.0.1.tgz","fileCount":5,"unpackedSize":4294,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDsbBTNKE06clwVgPjUz6PVzfOZKHanEu3bBQi7O9OZNgIhAJ7Q1slcCkglqMbzTBtNA3FqSCUWLNRgNUNAcwb3oWOV"}]},"_npmUser":{"name":"burgrp","email":"pb@drake.cz"},"directories":{},"maintainers":[{"name":"burgrp","email":"pb@drake.cz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/json-pad_1.0.1_1771964077789_0.4710179668974115"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-24T20:14:37.673Z","1.0.1":"2026-02-24T20:14:37.960Z","modified":"2026-02-24T20:14:38.191Z"},"maintainers":[{"name":"burgrp","email":"pb@drake.cz"}],"description":"Simple JSON persistence with filesystem watch","homepage":"https://github.com/burgrp/json-pad#readme","keywords":["json","storage","store","persistence","persist","store","storage","watch"],"repository":{"type":"git","url":"git+https://github.com/burgrp/json-pad.git"},"author":{"name":"Pavel Burgr","email":"pb@drake.cz"},"bugs":{"url":"https://github.com/burgrp/json-pad/issues"},"license":"ISC","readme":"# json-pad\nSimple JSON persistence with filesystem watch\n\nThis is just another library to load and save JSON data from a directory.\nIn addition to that, the library:\n- creates the directory if not exists\n- optionally watches filesystem for changes and calls you back on file change\n\n```js\nconst jsonPad = require(\"json-pad\")({\n    path: \"./data\"\n});\n\nasync function test() {\n\n    // create 'numbers' storage, with a default value\n    let numbers = jsonPad(\"numbers\", [1, 2, 3]);\n\n    // load data\n    console.info(\"LOAD:\", await numbers.load());\n\n    // we can watch for external changes of the JSON file\n    numbers.watch(async data => {\n        console.info(\"CHANGED:\", await data.load());\n    });\n\n    // save data\n    await numbers.save([4, 5, 6]);\n\n}\n\ntest().catch(console.error);\n```","readmeFilename":"README.md","_rev":"1-c7b182fa0835085d23ee7d1368a4067a"}