{"_id":"@bunland/moeban","_rev":"9-5a7ba898a4ce5f95880328d06caf7c1a","name":"@bunland/moeban","dist-tags":{"latest":"1.0.9"},"versions":{"1.0.0":{"name":"@bunland/moeban","version":"1.0.0","description":"Moeban JSON/NoSQL Database + ODM.","type":"module","devDependencies":{"bun-types":"^0.5.0"},"peerDependencies":{"typescript":"^5.0.0"},"main":"src/lib.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Bunland/moeban.git"},"keywords":[],"author":"","license":"MIT","bugs":{"url":"https://github.com/Bunland/moeban/issues"},"homepage":"https://github.com/Bunland/moeban#readme","gitHead":"1355250297374cfb1fbfb57bb783d0729c4e6dfc","_id":"@bunland/moeban@1.0.0","_nodeVersion":"19.5.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-mlNvGy+xxgcrWMnmCOAbZkWizO6Iq8xZX/vyll3Q1LUcBB/ZKa1HOyCNQS+en3z+cq+4pdUp5DHPdTbuzci1hA==","shasum":"33d7c5256591ffc3d7273e24bec503fb88e77d95","tarball":"https://registry.npmjs.org/@bunland/moeban/-/moeban-1.0.0.tgz","fileCount":17,"unpackedSize":35226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUf79GyYjc883m6OC5vVx0r3e1esJwRs4191OnjdN3cgIhAPs2mPWR7gkPOGGab1SI8LgrOMlzBVLnz2eL5IDm55cY"}]},"_npmUser":{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"},"directories":{},"maintainers":[{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moeban_1.0.0_1686094539453_0.11935404801565785"},"_hasShrinkwrap":false},"1.0.1":{"name":"@bunland/moeban","version":"1.0.1","description":"Moeban JSON/NoSQL Database + ODM.","module":"src/lib.ts","type":"module","devDependencies":{"bun-types":"^0.5.0"},"peerDependencies":{"typescript":"^5.0.0"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Bunland/moeban.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/Bunland/moeban/issues"},"homepage":"https://github.com/Bunland/moeban#readme","gitHead":"fa42e36b0775250c252d0cd5264d7f621faf549c","_id":"@bunland/moeban@1.0.1","_nodeVersion":"19.5.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-3CyNCq59HXdKUOTCYO7HYBQBhUpj/w3HCKuvcam/CIFw7UoWJoj0Fv0WtASjaOqb/ZGkTF5jhjBb1d9izsapVg==","shasum":"45d14e3c6b525c65ac5297f14d4d303c99f5f403","tarball":"https://registry.npmjs.org/@bunland/moeban/-/moeban-1.0.1.tgz","fileCount":17,"unpackedSize":35245,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFLJMZrGP8YnSsYuTcanK2Qi5mqOs0Gw9Xv/xVsnxVb9AiEAqRVOau7Hlu5Xg7vvls+WI1CFcBwespd6cxNzczpD6I8="}]},"_npmUser":{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"},"directories":{},"maintainers":[{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moeban_1.0.1_1686095926569_0.4121269629561186"},"_hasShrinkwrap":false},"1.0.2":{"name":"@bunland/moeban","version":"1.0.2","description":"Moeban JSON/NoSQL Database + ODM.","module":"src/lib.ts","type":"module","devDependencies":{"bun-types":"^0.5.0"},"peerDependencies":{"typescript":"^5.0.0"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Bunland/moeban.git"},"keywords":[],"author":"","license":"MIT","bugs":{"url":"https://github.com/Bunland/moeban/issues"},"homepage":"https://github.com/Bunland/moeban#readme","gitHead":"fa42e36b0775250c252d0cd5264d7f621faf549c","_id":"@bunland/moeban@1.0.2","_nodeVersion":"19.5.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-H487w8awaMuGZ+j90LecCVJ0VTDg1qtVkYZZZO0HUsxDuDuRoj4xOY5nPAzc6gwcmn1LJTOwbPQZv7vPaW/Z4w==","shasum":"50fb7caef4a5e739b953d4f25803cd4234acee05","tarball":"https://registry.npmjs.org/@bunland/moeban/-/moeban-1.0.2.tgz","fileCount":17,"unpackedSize":35245,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6fDXw43zG1tOCoYuR51kATFKn9K78tzlLZxJ3FNtW0gIgFkb60i33eseGzr6kXo5t8v5377iXarV/nDRvXV//kic="}]},"_npmUser":{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"},"directories":{},"maintainers":[{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moeban_1.0.2_1686096012088_0.3335757863100688"},"_hasShrinkwrap":false},"1.0.3":{"name":"@bunland/moeban","version":"1.0.3","description":"Moeban JSON/NoSQL Database + ODM.","module":"src/lib.ts","type":"module","devDependencies":{"bun-types":"^0.5.0"},"peerDependencies":{"typescript":"^5.0.0"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Bunland/moeban.git"},"keywords":["NoSQL","Bunland","Bun","typescript","ODM"],"author":{"name":"Bunland"},"license":"MIT","bugs":{"url":"https://github.com/Bunland/moeban/issues"},"homepage":"https://github.com/Bunland/moeban#readme","gitHead":"fa42e36b0775250c252d0cd5264d7f621faf549c","_id":"@bunland/moeban@1.0.3","_nodeVersion":"19.5.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-dtMIRp0WEeNFrIuQ4r7s1do74Hj2Nsg1McCmDBGokj7edH44BGvjm5myj1ex4NSYL9LcF8uFZaYyb6f56IPRgg==","shasum":"65c4b95a22ec4ce17ab9f401dbba5e9650d7bd43","tarball":"https://registry.npmjs.org/@bunland/moeban/-/moeban-1.0.3.tgz","fileCount":17,"unpackedSize":35298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaMvDBKeEWMQnCkFqNMldGKwsdV5tSkb2zMBsY18psRgIgNNQAsrTWNyH7ak0eZaqbZtBvNU+5W5lEOFhnNjds+SQ="}]},"_npmUser":{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"},"directories":{},"maintainers":[{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moeban_1.0.3_1686096100687_0.4071847368776549"},"_hasShrinkwrap":false},"1.0.4":{"name":"@bunland/moeban","version":"1.0.4","description":"Moeban JSON/NoSQL Database + ODM.","type":"module","devDependencies":{"bun-types":"^0.5.0"},"peerDependencies":{"typescript":"^5.0.0"},"main":"src/lib.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Bunland/moeban.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/Bunland/moeban/issues"},"homepage":"https://github.com/Bunland/moeban#readme","gitHead":"145afc3c3704715728c8ff23a2f58040ad27c561","_id":"@bunland/moeban@1.0.4","_nodeVersion":"19.5.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-JlFLjpxKmr2Gs/4mo2ftV+/lKlItT1gx5oH+cfpOpEvLif/jcVnX0ETvXVzQXtO5HGGtmQSW94ewVuALRHxfgA==","shasum":"4da77ecdf81262fbb8d3ab4dc13b6cefa12f6776","tarball":"https://registry.npmjs.org/@bunland/moeban/-/moeban-1.0.4.tgz","fileCount":17,"unpackedSize":35221,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChGtuVBmVf1lPELX4wqkU/yKz1itPz77Ne2i0FJRVHrQIhAMvm1GhrllsVFt5E2bLaOXzZ+RTpM6o5VZ/T4aWkoRHd"}]},"_npmUser":{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"},"directories":{},"maintainers":[{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moeban_1.0.4_1686097009470_0.35874816740125226"},"_hasShrinkwrap":false},"1.0.5":{"name":"@bunland/moeban","version":"1.0.5","description":"Moeban JSON/NoSQL Database + ODM.","type":"module","devDependencies":{"bun-types":"^0.5.0"},"peerDependencies":{"typescript":"^5.0.0"},"main":"src/lib.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Bunland/moeban.git"},"keywords":["Bunland","NoSQL","Bun","Typescript","ODM"],"author":{"name":"Bunland"},"license":"MIT","bugs":{"url":"https://github.com/Bunland/moeban/issues"},"homepage":"https://github.com/Bunland/moeban#readme","gitHead":"145afc3c3704715728c8ff23a2f58040ad27c561","_id":"@bunland/moeban@1.0.5","_nodeVersion":"19.5.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-Ykusx/trm54BC8csJTdWvHom0hN2TudChZ+lDVzOmwJNPMN/Rm+qpv7xXBYjR2lqFBAaDlQ/edhP2XoffpNiyw==","shasum":"09a54093e1c6e523f852985181e7b696360122bc","tarball":"https://registry.npmjs.org/@bunland/moeban/-/moeban-1.0.5.tgz","fileCount":17,"unpackedSize":35274,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFSQkPmwbtcTztUe1sxWRjiT2mIHRT3+dQz2TpdyQTVOAiEApH/lO31poqFRWA4V7ZnsZT80QwqJNSRxY9W4L7vYbUk="}]},"_npmUser":{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"},"directories":{},"maintainers":[{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moeban_1.0.5_1686097082925_0.10289074877700166"},"_hasShrinkwrap":false},"1.0.6":{"name":"@bunland/moeban","version":"1.0.6","description":"Moeban JSON/NoSQL Database + ODM.","author":{"name":"Bunland"},"license":"MIT","homepage":"https://github.com/Bunland/moeban#readme","repository":{"type":"git","url":"git+https://github.com/Bunland/moeban.git"},"keywords":["Bunland","NoSQL","Bun","Typescript","ODM"],"main":"src/database/database_service.ts","type":"module","devDependencies":{"bun-types":"0.8.1"},"peerDependencies":{"typescript":"5.2.2"},"bugs":{"url":"https://github.com/Bunland/moeban/issues"},"_id":"@bunland/moeban@1.0.6","gitHead":"e0f9c0c19b30bf4cc1f113b030c9c8bd05641255","_nodeVersion":"20.8.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-4CIFCfAV3wJ3qkQvks3niMgQaIRqFhBD2g6xEC+Den170IQCDPqI0eSAYB0OZmW8lSR2of07ezjBWiGCU9Y0xg==","shasum":"1101c2a91cf3da370717368981bba0464cee8849","tarball":"https://registry.npmjs.org/@bunland/moeban/-/moeban-1.0.6.tgz","fileCount":4,"unpackedSize":36640,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7xeSiTkHETgkQdu2khSpm4vLkCg4dd+85X1FsBbBJvAIhAPdMxKKSIEx9sCTGuE/JyAR4aNEzJct3r0pXWoz+mKRc"}]},"_npmUser":{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"},"directories":{},"maintainers":[{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moeban_1.0.6_1696983667951_0.4428832373890774"},"_hasShrinkwrap":false},"1.0.7":{"name":"@bunland/moeban","version":"1.0.7","description":"Moeban JSON/NoSQL Database + ODM.","author":{"name":"Bunland"},"license":"MIT","homepage":"https://github.com/Bunland/moeban#readme","repository":{"type":"git","url":"git+https://github.com/Bunland/moeban.git"},"keywords":["Bunland","NoSQL","Bun","Typescript","ODM"],"main":"src/database/database_service.ts","type":"module","devDependencies":{"bun-types":"0.8.1"},"peerDependencies":{"typescript":"5.2.2"},"bugs":{"url":"https://github.com/Bunland/moeban/issues"},"_id":"@bunland/moeban@1.0.7","gitHead":"e0f9c0c19b30bf4cc1f113b030c9c8bd05641255","_nodeVersion":"20.8.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-j5sXF29o+fF2uTfSsqWe8ZrdU3/Uy/ks/XmJHOSd7Kgq7E7NuEO0odnae94qBPMZ3E0fMSGpQqi+J50T1fVUUg==","shasum":"5f143e7cc6082ee73b8ec79cc8344241c4c96636","tarball":"https://registry.npmjs.org/@bunland/moeban/-/moeban-1.0.7.tgz","fileCount":5,"unpackedSize":39099,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICDM5AruVDHZHUUzlPk8NqDHjngL5jiOW27oyBdSHe+5AiEAzjnj6QA7+mBTn912WL9/zc/9tW+D/prLuJHWbgiStO0="}]},"_npmUser":{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"},"directories":{},"maintainers":[{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moeban_1.0.7_1696983711383_0.1337741174623197"},"_hasShrinkwrap":false},"1.0.8":{"name":"@bunland/moeban","version":"1.0.8","description":"Moeban JSON/NoSQL Database + ODM.","author":{"name":"Bunland"},"license":"MIT","homepage":"https://github.com/Bunland/moeban#readme","repository":{"type":"git","url":"git+https://github.com/Bunland/moeban.git"},"keywords":["Bunland","NoSQL","Bun","Typescript","ODM"],"main":"src/database/database_service.ts","type":"module","devDependencies":{"bun-types":"0.8.1"},"peerDependencies":{"typescript":"5.2.2"},"bugs":{"url":"https://github.com/Bunland/moeban/issues"},"_id":"@bunland/moeban@1.0.8","gitHead":"e0f9c0c19b30bf4cc1f113b030c9c8bd05641255","_nodeVersion":"20.8.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-9x8BByvpn/JxsI+Uyv8bCqZQN6QHzV3dAqT3lvOF/Sa51OQua54jDSywZJ6ja/1NtaNTi7bFKoHUPCyfbQzP1w==","shasum":"485c2eae8407bdaa356e9bc3160211cc1b933a7e","tarball":"https://registry.npmjs.org/@bunland/moeban/-/moeban-1.0.8.tgz","fileCount":5,"unpackedSize":39094,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmCz/z3YJnNt21dcMK1QVObBnmuqGl7rk4ax0wWw/V7QIgXolkoN/ldEttztUURftGCb2CuZKU7IcG3wPWqW4nXSY="}]},"_npmUser":{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"},"directories":{},"maintainers":[{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moeban_1.0.8_1696983912030_0.39693692946590153"},"_hasShrinkwrap":false},"1.0.9":{"name":"@bunland/moeban","version":"1.0.9","description":"Moeban JSON/NoSQL Database + ODM.","author":{"name":"Bunland"},"license":"MIT","homepage":"https://github.com/Bunland/moeban#readme","repository":{"type":"git","url":"git+https://github.com/Bunland/moeban.git"},"keywords":["Bunland","NoSQL","Bun","Typescript","ODM"],"main":"moeban.ts","type":"module","devDependencies":{"bun-types":"0.8.1"},"peerDependencies":{"typescript":"5.2.2"},"bugs":{"url":"https://github.com/Bunland/moeban/issues"},"_id":"@bunland/moeban@1.0.9","gitHead":"f72f20eb02b531b0d1dce9dee6c636aab4eda2f2","_nodeVersion":"20.8.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-U/IpirvOtHrimjm2xDmbQM/HR23numYFTbPCn5wh1drZ09UT4nF3J7MZVWNqM5jBWajGD2JI4dJIiTmhrZJbsg==","shasum":"fd7756902b95b6afe2e8e8f335590da9eced66cf","tarball":"https://registry.npmjs.org/@bunland/moeban/-/moeban-1.0.9.tgz","fileCount":5,"unpackedSize":39071,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF8lpuDzLaO1kflmgiKdaiecG/usO7i+DX+HKztYg2pfAiB4qumvTCvLTisrXsouJMz1sHD4U2Ng4cNamz6bPZLw4g=="}]},"_npmUser":{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"},"directories":{},"maintainers":[{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moeban_1.0.9_1696984210222_0.24108795014581075"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-06T23:35:39.403Z","1.0.0":"2023-06-06T23:35:39.685Z","modified":"2023-10-11T00:30:10.621Z","1.0.1":"2023-06-06T23:58:46.769Z","1.0.2":"2023-06-07T00:00:12.241Z","1.0.3":"2023-06-07T00:01:40.843Z","1.0.4":"2023-06-07T00:16:49.822Z","1.0.5":"2023-06-07T00:18:03.158Z","1.0.6":"2023-10-11T00:21:08.149Z","1.0.7":"2023-10-11T00:21:51.629Z","1.0.8":"2023-10-11T00:25:12.231Z","1.0.9":"2023-10-11T00:30:10.447Z"},"maintainers":[{"name":"bunland","email":"vitalcode2022+bunland@gmail.com"}],"description":"Moeban JSON/NoSQL Database + ODM.","homepage":"https://github.com/Bunland/moeban#readme","keywords":["Bunland","NoSQL","Bun","Typescript","ODM"],"repository":{"type":"git","url":"git+https://github.com/Bunland/moeban.git"},"bugs":{"url":"https://github.com/Bunland/moeban/issues"},"license":"MIT","readme":"<p align=\"center\" width=\"100%\">\n  <img src=\"https://github.com/Bunland/moeban/assets/29004070/372ced48-4be8-48c3-885e-e690916a7129\" alt=\"moeban\" />\n</p>\n\n# Moeban\n\nMoeban is a JSON/NoSQL Database + ODM (Object-Document Mapper) library for\nNode.js.\n\n## Installation\n\nYou can install Moeban using npm:\n\n```bash\nbun install @bunland/moeban\n```\n\n## Getting Started\n\nHere's a basic example of how to use Moeban:\n\n```javascript\nimport { Moeban } from \"@bunland/moeban\"\n \n// Define your data model\nconst userModel = new Moeban(\"example.json\", \"users\");\n\n// Create a user object\nconst user = {\n  _id: 1,\n  name: \"Luis\",\n  email: \"luis@mail.com\",\n};\n\n// Write the user object to the database\nuserModel.write(user)\n  .then((result) => {\n    console.log(result); // Should return the written user object\n  })\n  .catch((error) => {\n    console.error(\"Error in write:\", error);\n  });\n\n// Find all users in the database\nuserModel.find()\n  .then((users) => {\n    console.log(users); // Should return an array of user objects\n  })\n  .catch((error) => {\n    console.error(\"Error in find:\", error);\n  });\n\n// Find a user by _id\nuserModel.findOne(\"_id\", \"1\")\n  .then((user) => {\n    console.log(user); // Should return the user object with _id 1\n  })\n  .catch((error) => {\n    console.error(\"Error in findOne:\", error);\n  });\n\n// Remove a user by _id\nuserModel.removeOne(\"_id\", \"1\")\n  .then((result) => {\n    console.log(result); // Should return true if the user was removed\n  })\n  .catch((error) => {\n    console.error(\"Error in removeOne:\", error);\n  });\n```\n\n## Testing\n\nYou can run the tests for Moeban using the following command:\n\n```bash\nbun test\n```\n\nThe tests cover various aspects of the library, including writing, finding, and\nremoving data, as well as error handling.\n\n```javascript\nbun test v0.8.1 (16b4bf34)\n\ntests/service.test.ts:\n✓ Test write function > Should write a model [0.55ms]\n✓ Test find function > Should return an array of objects [0.35ms]\n✓ Test findOne function > Should return an object [0.26ms]\n✓ Test removeOne function > Should return true if the element was removed [0.50ms]\n✓ Test findOne function > Should throw an error when the element could not be found [0.26ms]\n✓ Test removeOne function > Should throw an error when the element could not be deleted [0.12ms]\n\n 6 pass\n 0 fail\n 8 expect() calls\nRan 6 tests across 1 files. [22.00ms]\n```\n\nFeel free to explore Moeban and adapt it to your specific use cases. Happy\ncoding!\n","readmeFilename":"README.md","author":{"name":"Bunland"}}