{"_rev":"3-2d61af1a5935190e5386b8c5a08cefb1","time":{"created":"2024-09-19T18:45:53.406Z","modified":"2024-09-19T18:45:54.103Z","1.0.0":"2024-09-18T20:16:52.224Z","1.0.1":"2024-09-19T18:45:53.753Z"},"_id":"@arffornia/nexus_saver","name":"@arffornia/nexus_saver","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@arffornia/nexus_saver","version":"1.0.1","scripts":{"test":"jest","build":"tsc && tsc-alias"},"main":"dist/index.js","types":"dist/index.d.ts","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Arffornia/Nexus_Saver.git"},"author":{"name":"TheGostsniperfr"},"license":"MIT","bugs":{"url":"https://github.com/Arffornia/Nexus_Saver/issues"},"homepage":"https://github.com/Arffornia/Nexus_Saver#readme","description":"This package lets you manage variables that you want to save and load.","devDependencies":{"@types/jest":"^29.5.12","@types/node":"^22.2.0","axios":"^1.7.3","jest":"^29.7.0","ts-jest":"^29.2.4","tsc-alias":"^1.8.10","typescript":"^5.5.4"},"_id":"@arffornia/nexus_saver@1.0.1","gitHead":"23b193890a70f22b4054ab526143a217bd609d86","_nodeVersion":"20.15.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-v3N3CRHHuxsoXlT8vgMhLdWE3O/0nI/T6Fa+mxJOHPC8NrLXq3w5zYYn+Ge+gTeqmXe4I9JK+CY6jVt9C5XfOQ==","shasum":"d7bfc27edbcc56ed9528c1e20ddbe9a2b4b8338f","tarball":"https://registry.npmjs.org/@arffornia/nexus_saver/-/nexus_saver-1.0.1.tgz","fileCount":7,"unpackedSize":9303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFcD36CRTkWUz5KJrjhsjM1+i6LL6yvuU+qy23tScuGwAiBLT4cCrUexVxW4SE4Y0H6nG8pVzBhAb2tilcRdVIQt9Q=="}]},"_npmUser":{"name":"the_gost_sniper","email":"brianperret.pro@gmail.com"},"directories":{},"maintainers":[{"name":"the_gost_sniper","email":"brianperret.pro@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nexus_saver_1.0.1_1726771553529_0.6826067375781979"},"_hasShrinkwrap":false}},"maintainers":[{"name":"the_gost_sniper","email":"brianperret.pro@gmail.com"}],"description":"This package lets you manage variables that you want to save and load.","homepage":"https://github.com/Arffornia/Nexus_Saver#readme","repository":{"type":"git","url":"git+https://github.com/Arffornia/Nexus_Saver.git"},"author":{"name":"TheGostsniperfr"},"bugs":{"url":"https://github.com/Arffornia/Nexus_Saver/issues"},"license":"MIT","readme":"# Nexus Saver\r\n\r\nThis package lets you manage variables that you want to save and load.\r\n\r\n## Install : \r\n\r\nTo include Nexus Saver in your project, you can install it using npm :\r\n```bash\r\nnpm i @arffornia/nexus_saver\r\n```\r\n\r\n## Usage : \r\n\r\n#### Init \r\nAt the beginning, you must initialize an instance of NexusSaver with the path of the save file :\r\n\r\n```typescript\r\nconst saver = new NexusSaver(savedFilePath);\r\n```\r\n\r\n#### Save a variable : \r\nYou can easily save a variable like this : \r\n\r\n```typescript\r\nsaver.save(\"key\", \"value\");\r\n```\r\n\r\nNb: If you set a variable that already exists, it will simply overwrite it.\r\n\r\n#### Load a variable :\r\nYou can easily load a variable like this :\r\n\r\n```typescript \r\nsaver.load(\"key\");\r\n```\r\n\r\nNb: If the key doesn't exist, it will return an empty string.\r\n\r\n#### Delete a variable :\r\nYou can easily delete a variable using its key with :\r\n\r\n```typescript\r\nsaver.delete(\"key\");\r\n```\r\n\r\nNb: If you try to delete a key that doesn't exist, nothing will happen.\r\n\r\n## Tests\r\n\r\nTests are managed by **Jest** \r\n\r\nYou can run the tests using :\r\n\r\n```bash\r\nnpm test\r\n```\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT licence. You can consult the complete text of the licence in the file [LICENSE](LICENSE).\r\n\r\n\r\n\r\n","readmeFilename":"README.md"}