{"repo":"Belphemur/node-json-db","free":true,"listed":false,"github":"https://github.com/Belphemur/node-json-db","clone":"git clone https://github.com/Belphemur/node-json-db.git","description":"A simple \"database\" that use JSON file for Node.JS.","language":"TypeScript","stars":828,"topics":["database","json","javascript","datapath","typescript"],"license":"MIT","category":"databases-storage","readme_excerpt":"A simple \"database\" that uses JSON file for Node.JS. Breaking changes since v1.x.x v2.0.0 JsonDB is now using the concept of async/await for all its calls since we read from the database file on demand and depending on how the database is configured, we might write at each push. - You're now forced to use the Config object to setup JsonDB - Every method is now asynchronous Installation Add node-json-db to your existing Node.js project. PNPM: NPM: Documentation Auto Generated Known projects If you're looking for testing out the library in a playground @Servant-Cities has made a small project to test it out: Rest Api Playground Inner Working Data The module stores the data using JavaScript Object directly into a JSON file. You can easily traverse the data to directly reach the desired property using the DataPath. The principle of DataPath is the same as XMLPath. Example If you want to fetch the value of array, the DataPath is /test/data1/array To reach the value of data2 : /test/data2 You can of course also get the full object test : /test Or even the root : / Usage See test for more usage details. TypeScript Support v0.8.0 As of v0.8.0, TypeScript types are included in this package, so using @types/node-json-db is no longer required. v1.0.0 JsonDB isn't exported as default any more. You'll need to change how you load the library. This change is done to follow the right way to import module. Typing With TypeScript, you have access to a new method: getObject that will take care ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Belphemur","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Belphemur/node-json-db/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}