{"_id":"@antoniosbarotsis/fake-db","_rev":"6-2a842dd4141aebd60d5ab428ff3cb3de","name":"@antoniosbarotsis/fake-db","dist-tags":{"latest":"0.4.1"},"versions":{"1.0.0":{"name":"@antoniosbarotsis/fake-db","version":"1.0.0","description":"","main":"index.js","scripts":{"start":"node src/server.js","dev":"node src/util/dataMapper.js && nodemon src/server.js"},"repository":{"type":"git","url":"git+https://github.com/AntoniosBarotsis/fakeDB.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/AntoniosBarotsis/fakeDB/issues"},"homepage":"https://github.com/AntoniosBarotsis/fakeDB#readme","dependencies":{"chalk":"^3.0.0","express":"^4.17.1","morgan":"^1.10.0","winston":"^3.3.3"},"devDependencies":{"nodemon":"^2.0.7"},"gitHead":"32be75dfff6a639710d19c7a189247a26c95c637","_id":"@antoniosbarotsis/fake-db@1.0.0","_nodeVersion":"15.4.0","_npmVersion":"7.7.5","dist":{"integrity":"sha512-byF85Y+s+QgNcryB3aOL9RRYGzet40hWjhY4V8OjcD/uI/PqQc+Sep85iarH76LfGVNf5/QLQoimvXm1etIsNg==","shasum":"60ea703ecf6575efdd015c29fe978c2b5c6942b5","tarball":"https://registry.npmjs.org/@antoniosbarotsis/fake-db/-/fake-db-1.0.0.tgz","fileCount":4,"unpackedSize":4874,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgckguCRA9TVsSAnZWagAAo3EP/jMHAr6gqSEUb9FOhCs0\nwS1uo4Z1m3auk/nOm9F7f7DUElRvhLXaLetjnmqd0yEdZC/wiExPpUDoNlaA\nRQKGYMqApDhiYWRY15zQco1ICEHIklv3qkb12VFF7VD0H7rRonDrYe18C+9J\nrVnPAZLst3FR74NyGoWcZ+IAESWmEDDNZWyKcsls+2dmMkQLnj/OCrd6hs6H\nUK312TUTjuGKHK7OSEH7qlA5DtswHdNNdAmFxnwJgYBZz5jV0py2BoWOZbqf\na2XOtkZmPMNhZ54k0EUG1Jea1CI5qh1zk8KoyN/+lKKQUlAVmNIzpjUgM+oO\nkXtda96X0UestxJc2Xg0TnV/CsqLEzaXJTeS53nIhb0Dj55jVtR8YUjqdUxq\nMLtcNMFDPOlSdpWItSXkij60lT8ynmReNmEWH6hb4Xmw/pmnVftfSA4C14AE\nEcIHhu0jE70LrMXFAr+BI9r/uFXW1bzzcF2Ighj3co+wxiD96xBT6Dz5OWDl\noNcvoH2SdJfg4xBoj8Jg0lkYYT3GhY/5aren1rIDLVmAwWvtfHM5wq1S3RDV\nnpurvQskpmT2z+FR/Ah4Mi/Onr+6mQvPIP5TDP9vLzaAwQS+AEenX38IGN6d\n7dt9ouqeWnd4juSfy5gUfXVnAETadBc/p69HWAD1BdOpSD7ynqNyr12pmezS\nQjmX\r\n=TCTq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDfi4//qm/OP/k2ArCULmq1UVtWTwvDy61VSRfFlOgyjgIgNVrZK0+Kmty7xkYizO3ACin5l1QEeEkTS1f5mAe6q0w="}]},"_npmUser":{"name":"antoniosbarotsis","email":"antonios.barotsis@tutanota.com"},"directories":{},"maintainers":[{"name":"antoniosbarotsis","email":"antonios.barotsis@tutanota.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fake-db_1.0.0_1618102318220_0.4073868458054988"},"_hasShrinkwrap":false},"0.0.1":{"name":"@antoniosbarotsis/fake-db","version":"0.0.1","description":"","main":"index.js","scripts":{"start":"node src/server.js","dev":"node src/util/dataMapper.js && nodemon src/server.js"},"repository":{"type":"git","url":"git+https://github.com/AntoniosBarotsis/fakeDB.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/AntoniosBarotsis/fakeDB/issues"},"homepage":"https://github.com/AntoniosBarotsis/fakeDB#readme","dependencies":{"chalk":"^3.0.0","express":"^4.17.1","morgan":"^1.10.0","winston":"^3.3.3"},"devDependencies":{"nodemon":"^2.0.7"},"gitHead":"32be75dfff6a639710d19c7a189247a26c95c637","_id":"@antoniosbarotsis/fake-db@0.0.1","_nodeVersion":"15.4.0","_npmVersion":"7.7.5","dist":{"integrity":"sha512-ZO363mZ2EKubqwVTRxNFPTwC7WBc2rVYUuN/Q0fLehEGerxJG4eTSRug34EoxIgNXgaCE/3/xoWVuUZ8Fy9WOQ==","shasum":"250a381f159376eea69faa0157f423d762c9f126","tarball":"https://registry.npmjs.org/@antoniosbarotsis/fake-db/-/fake-db-0.0.1.tgz","fileCount":4,"unpackedSize":4874,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgckhACRA9TVsSAnZWagAA0jkP/0AR+F/pLdDMehjY7OJl\nAVUrMQWt3kd1cybYmr7JcaQ/DD1cbyIJmjU2rkItsY9vHUT3JD6h+OBnHeea\nmZsbkPDQJS2MLRO7gX8TpFIeELnThpkHcm2d4NjJ0RF9zvnY3xbIdOpLrN+s\nOP5GRFczFbw5kivuGT3dVjvhbIn/hGwRyUa42VV2dF2WAEMtQDEEEiFyrnIW\no8/BBdJJYk8x3gOIA9V2Qb8/CwBihHGomhafqAD3GtnhKHSXvyMRSoa/Cysb\nnb6ZisKrduGlVXux7KqDwDVtkVUnl1XXWd0vv1kts67vGYnze1kbkFLr7ON1\nHtsLhZaIc0QBr5bPsCdLMXXfFOGfvdn6uILUHmNqxXDdDrPuhaP5ll0JDqfS\nUZqVvr2IRTr+He8pPAxPbh+BIftGjjlMoHl4WYLrcKgp4SPeePfuPvFgKFNz\nSlfjgYslLfSSRkR9LhJ7CbrFJTMI0L1lbgCqX3vw1R1xPb5Ypg68k5PXXdk6\nAayTdMaO7W7lzgDt2hAcmvZOqwxEP58t7LYe5YkqH+BkmgRDeySooYyAS4qv\n5riy2kxUZa3zIR7AFwZFTOIY2pt/WGpolF/wQilqggxAmGM2CthjsILM+OjP\netRLNlt1TUTDb2qMooOCaZvN+nnu5U8QNH/AvGgyxX6tcxbWDYxR3Uv3eoo3\nlCwe\r\n=2efE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwBv/WDgjcvXsDuYY/rrEuPVTUqKg7mrXMlS7mEcjPJQIhAI2aCDJYatnWFG3KweoxXUNkTycH5WFurqv64NYaio+r"}]},"_npmUser":{"name":"antoniosbarotsis","email":"antonios.barotsis@tutanota.com"},"directories":{},"maintainers":[{"name":"antoniosbarotsis","email":"antonios.barotsis@tutanota.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fake-db_0.0.1_1618102336265_0.9412261099738461"},"_hasShrinkwrap":false},"0.0.2":{"name":"@antoniosbarotsis/fake-db","version":"0.0.2","description":"","main":"src/server.js","scripts":{"start":"node src/server.js","dev":"node src/util/dataMapper.js && nodemon src/server.js"},"repository":{"type":"git","url":"git+https://github.com/AntoniosBarotsis/fakeDB.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/AntoniosBarotsis/fakeDB/issues"},"homepage":"https://github.com/AntoniosBarotsis/fakeDB#readme","dependencies":{"chalk":"^3.0.0","express":"^4.17.1","morgan":"^1.10.0","winston":"^3.3.3"},"devDependencies":{"nodemon":"^2.0.7"},"gitHead":"6c59879402114085baf5fa9ad59e79b6d30179af","_id":"@antoniosbarotsis/fake-db@0.0.2","_nodeVersion":"15.4.0","_npmVersion":"7.7.5","dist":{"integrity":"sha512-zJ6FZ1/sjYpilHagIquXf9/Lo7H+7eIzSYmXrWIqn0NddCoDCvC7QTo8TWW/ZgmzxBOsB4QyMHEg5m2/CzPE8Q==","shasum":"42b1e8adba70ebba9015f02027139ebcc32b1de5","tarball":"https://registry.npmjs.org/@antoniosbarotsis/fake-db/-/fake-db-0.0.2.tgz","fileCount":4,"unpackedSize":4879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgckvdCRA9TVsSAnZWagAAbbgP/0izxxZl630V2t/frIy+\nIxSBpsvh0g8Ui+1BJo2W7MiA8dVnerc7Kr8iNpiwdh20Ebpvfepc1GFLqrgG\n5zE43Bwr1bE1oNoTE3TdJjhAGXypafnBhYxrQoDSYldtSm3Z4o3XnFR2byok\nuxn8ZriBQJe1Zz/XIY2EmFssVvUzt7azlF5LGyZ+Z2h6VuPnkotlfOI9hZc9\n1F7RnpWwq8BWeyjQu+eeiMW3DaiN8qJYbQZkIWXl9ri58fJXBjjBYIRTivdm\n+HsDXHKVa+K1GMwl+QVoXfaT50enbn7vMq6JjjsFBwmto88Ihf5aeO1y/2lt\nqGr1JsJb4MFDOW9wPcL0suCfivVGrg8Ky3X5T9KCImHqvOZUY5H5halUargQ\nh8RsJbDWQmeb8jDsrtBIKnc36ugFwCUlw0fR8WiXxDRxv2WNJPGmSGhNihRV\nHRixKnsDddyQxX74AtpnrYwQCMDTN3b3FmLwxMNBQPk+k8mTZ8J39WQEK2AD\nIUHWYPrrrRq6AVhppJ9QNesc/VIf9M39JuUiIGC3TfsnFK1eZRlu0G4xdXC0\n/2s/g0fsXX/oU1TaZ1DIniGrd2+Optsm4EqMgZw3jALffK9rx6T+YX/RsVy/\nFytVsz+JKJSBAvEQVEwWI/h1lDaR/9+eT+JSUjfuQtFTj1yayPk2A8cm6Hug\nHB8u\r\n=yY5w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG3xPve455rB16lw9hP9kabp16b0CQYwdLUst4aBHhzoAiA/eTKh9SlUZfdJM81TrD1SGV11m5Vav8FBei5igYXjYA=="}]},"_npmUser":{"name":"antoniosbarotsis","email":"antonios.barotsis@tutanota.com"},"directories":{},"maintainers":[{"name":"antoniosbarotsis","email":"antonios.barotsis@tutanota.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fake-db_0.0.2_1618103260762_0.8483786582528545"},"_hasShrinkwrap":false},"0.3.1":{"name":"@antoniosbarotsis/fake-db","bin":{"<cli_command_name>":"src/app.js"},"version":"0.3.1","description":"Fake-DB reads in a json file and automatically creates various endpoints\r on an express server. The point of this is for it to be used as an API\r mock to aid front-end development.","main":"src/app.js","scripts":{"start":"node src/util/init.js && node src/app.js","test":"","dev":"node src/util/init.js && node src/app.js"},"repository":{"type":"git","url":"git+https://github.com/AntoniosBarotsis/fakeDB.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/AntoniosBarotsis/fakeDB/issues"},"homepage":"https://github.com/AntoniosBarotsis/fakeDB#readme","dependencies":{"express":"^4.17.1","lodash":"^4.17.21","morgan":"^1.10.0"},"gitHead":"3a1cfc98d5db00d80f667d3603589e225ee1e6bd","_id":"@antoniosbarotsis/fake-db@0.3.1","_nodeVersion":"15.4.0","_npmVersion":"7.7.5","dist":{"integrity":"sha512-5q3Am74UeJca1VjarMX1D2uiUF3fxzUq846MlFXwZMl29Od9FhqCoOzaALeG9PPDS+p68AlfEK/oCif5rfEnEQ==","shasum":"18dfd630c6645755fb998d2c85685327d3abc028","tarball":"https://registry.npmjs.org/@antoniosbarotsis/fake-db/-/fake-db-0.3.1.tgz","fileCount":7,"unpackedSize":10334,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgc7BbCRA9TVsSAnZWagAA134P/jH4x2UMH8cc9bZaick9\nzk9Gc/Z0XVckDhsrwVJdhjA2/ZqhOOyQWLlst8j2OdQhKzBu3HjqNgyhJYW0\nfV0257ytsg2JCyVdD+uTiYFOuneKQ8+2gTCuyTFTQMyWv2hHwUcJL9yQ6SrV\n1mNyhfzVboOra8pxHhxYUriZw0Bw7XthEw7ZxKsE8u47TXSo4XisOT76p7lJ\nfmlv/pszxKZw84qEBxm+wTqMeju6q8g4OklRxdbGAcqimZwyNeF7gFDYzvbT\nxtMiFt3dlHN+uMRIrIno/wL1sj85B9lAVJ/7ZdXIUmkWkrs8N6HnUhGsTGlP\n+U/0/skmMvjf4AbCTH2qOk58CA9JkEIGZEwUAD9nHV3PcL8mwAl2NEwCR1k2\nVROxkhB/VPwFV46JyuErTGErfXZu6LFepZHjy6PHLB8eeRXgqPKfdjWxAf/l\nkTS+UsSxz3/R9COmFgqt/MXFo5z5DV4nkxdUzL0Z9Cyo5S0Wec5Dtc4qfIIS\nYLDIynyeAeo3SP/hJxXkmUq+N2kcP71xrvqNG6nd4kbXwSU/nlSo0fNOH+uL\n4fJhIkzKmqqdkqXiVFYLkraUSn5Jdj/Uxg17ZYCMDnKY5FkyXKyZb4dDHBom\nfwpdoUKY3vESKGmgps/UdZAEqHt/VZyWQvMZPm9e/7SCXFxiLgAW9xx3zTDm\nI4OR\r\n=DwYD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHyjhZEaBtIb6BAKvz6y8wypGvRFWWgNJXRtXZv2PeGwIgYEReO5p/h2MskMYE1VWZHXUkpdyn5ce4xd8frYAzlGg="}]},"_npmUser":{"name":"antoniosbarotsis","email":"antonios.barotsis@tutanota.com"},"directories":{},"maintainers":[{"name":"antoniosbarotsis","email":"antonios.barotsis@tutanota.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fake-db_0.3.1_1618194523043_0.07661503965893046"},"_hasShrinkwrap":false},"0.4.0":{"name":"@antoniosbarotsis/fake-db","version":"0.4.0","description":"[![NPM License](https://img.shields.io/npm/l/all-contributors.svg?style=flat)](https://github.com/AntoniosBarotsis/fakeDB/blob/master/LICENSE)\r [![NPM Version](https://img.shields.io/npm/v/@antoniosbarotsis/fake-db?style=flat)](https://www.npmjs.com/packa","main":"src/app.js","scripts":{"start":"","test":"","dev":"node src/util/init.js && node src/app.js"},"repository":{"type":"git","url":"git+https://github.com/AntoniosBarotsis/fakeDB.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"keywords":["mock","api","in-memory-database"],"author":"","license":"MIT","bugs":{"url":"https://github.com/AntoniosBarotsis/fakeDB/issues"},"homepage":"https://github.com/AntoniosBarotsis/fakeDB#readme","dependencies":{"express":"^4.17.1","lodash":"^4.17.21","morgan":"^1.10.0"},"gitHead":"70db7fed1c1b2fa112a4a5372e4eeb01d9abc2de","_id":"@antoniosbarotsis/fake-db@0.4.0","_nodeVersion":"15.4.0","_npmVersion":"7.7.5","dist":{"integrity":"sha512-w0J9VPzTuM7y5QeOBT+Nsx6ilxhfXTxlvNGnpWTLi/bu2/nTcb82bdeN5KQhw0MxJkB/9vk5i8K/TqbtYuAWGw==","shasum":"ec8655d2136b99ecfcab9a3a592fa8cc66925b39","tarball":"https://registry.npmjs.org/@antoniosbarotsis/fake-db/-/fake-db-0.4.0.tgz","fileCount":8,"unpackedSize":12772,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdw+tCRA9TVsSAnZWagAAvTUP/1nfXiK1ayO1j7yCkz40\nCnsnqEFouUysJBYJdXick+I9D3uxRc0UjZg09h2/uuDpNK4GtrvDmYcw6lB7\nJP6jiX5mTRN3EA3xIKdQYH9HDDrk5x1WRWI9gfDF9cOmX8O9pisepZ9qDayo\nhq8sxOtxOIG/KU36h5P0/HlTlGQLnAexlAbmWFaMpoW0e8ACGqjvVhflEyOp\nkthZgkpYHW5s9fnmpfweHfdMHQ0IuCoazNhmbtgpnO4tml1Dq0DaWYixCmAf\nlW0MI1BpLBdZfQMeW6zgArOcvemenfu9goUrq9C84GSGO9mW7eR/YkCwAraQ\npJ7kVvdRWckHUjZJDL66PEnPpXG0MCkzFQseJoHW+I0S6GeZcwBbJx1z/SYV\n17uaAcjUqMLd/Irn+2v/aI0cTx5gzZem0OECWZueJkLpbX2cgLsiCc8qt3sk\nGAV04XJENuMAXdXJdfn+QU302tImvfUKVoqLIFXxsTwl0iBW+MZwPDe9LVrE\nTPuVmcbrmgK02SejRiib0DlCPW1YVoue6J2GZW/68guKrsjgw5UfeMuw/X0D\nV2RMoh1Yg+6t/3uvhH0phme4Nyp0ZPf8q25WIjnSlzomdD3iti/MNLC2UdHy\nmmN+gWY8FSwlbTzUsya8QShP8CEdWRYhhHGtg16JNRYstxRX2jjIL2GiGnLe\n4x8E\r\n=kK69\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDK8NTWQ9PeQewYMAwB4Hb6IcguisRW+3ZvN3ILsvfz7AiEAiMgJnGqHQIXBgYd0J8X3kPPwR1RLLomfFsHFTZqpNfQ="}]},"_npmUser":{"name":"antoniosbarotsis","email":"antonios.barotsis@tutanota.com"},"directories":{},"maintainers":[{"name":"antoniosbarotsis","email":"antonios.barotsis@tutanota.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fake-db_0.4.0_1618415532741_0.7644158008117607"},"_hasShrinkwrap":false},"0.4.1":{"name":"@antoniosbarotsis/fake-db","version":"0.4.1","description":"[![NPM License](https://img.shields.io/npm/l/all-contributors.svg?style=flat)](https://github.com/AntoniosBarotsis/fakeDB/blob/master/LICENSE)\r [![NPM Version](https://img.shields.io/npm/v/@antoniosbarotsis/fake-db?style=flat)](https://www.npmjs.com/packa","main":"src/app.js","scripts":{"start":"","test":"","dev":"node src/util/init.js && node src/app.js"},"repository":{"type":"git","url":"git+https://github.com/AntoniosBarotsis/fakeDB.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"keywords":["mock","api","in-memory-database"],"author":"","license":"MIT","bugs":{"url":"https://github.com/AntoniosBarotsis/fakeDB/issues"},"homepage":"https://github.com/AntoniosBarotsis/fakeDB#readme","dependencies":{"express":"^4.17.1","lodash":"^4.17.21","morgan":"^1.10.0"},"gitHead":"6ee837159b273a274b9db072214effe0af3e9a15","_id":"@antoniosbarotsis/fake-db@0.4.1","_nodeVersion":"15.4.0","_npmVersion":"7.7.5","dist":{"integrity":"sha512-/eG2cvPO4/0L3XqT8WbwrgktnXu/Nex9+6GqYo6r6M9WJfKhb5tQJEt1JDU9xx1Q2akpqM4tMJ1WrBhA9/hJ1w==","shasum":"942af24925a6bee8c80dab9fc380621f752222b2","tarball":"https://registry.npmjs.org/@antoniosbarotsis/fake-db/-/fake-db-0.4.1.tgz","fileCount":8,"unpackedSize":12788,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdxDRCRA9TVsSAnZWagAAMdMP/3pe26hMZQ2dLLmwvgfw\nzCWjbzVHxxKMd1KbnTzcapBqXc8EqHB91N9/sIikFVLciGsrgEcILMPGit6m\ndZK7CBPbxxL6GSbmUJsySNAe9jZ/B5xdgjM/Zb4HLeI7A9nR9rdPb04OLxUe\nrxGKgzDF/FkkQYAO6aiccHr1zccRXxeUoAFpFgFJBSsVY0Iwm4VytQbVbNZ7\nY0DE5QWETw59jg+O0h67MvpsZrRNUJFNlLZN0tbty+rU7aHJ1XiD3nbzBWi1\nbDKHiTFtnf+uEpjjzDRlDLSQsJPaai/JzAbdZDYdVZRo4Fm94sOJAft1ll1s\nxax1l5EkCVnPf5G5la5ac8VhIZwOEbhnd7ZwqsvghHQQt6CubgjxqCDOhYHP\njZG3idvvE6K5Qf75Jyrhu/tCkYUGsu89VjGahfsJBZspOTDS7y/PKq3Ot6B2\nWCXa5Kg/Y8Id1MwlLc3zlfe50P+WQtVhjFQLHOCUPSFaFg9aNugVDCM19SqW\nQSXaiHKvXLBV+mMEWfYphv4CFuITlLLpxJk3ytfderF85mW/t1sTMulxu2/k\nFHIIuDjZoeKVTcOQ9nxzSGN/n4RuGwj+sYx4Tr8YUgihcULC4a6uDVKD/c3n\nicNd9uHHDMX0MrN9MDTeGHcCoTFysyNT2vxJDjbsaXncIdedEGYHKe4awmPh\nJidr\r\n=zNm/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDta3EdhZAADN5MAoSPnGvsMC/4bsUkkx7btmSYB5byoAIgXbYUNbxVqPA5pr31D4iGUvOAsqyI2tLW25fIHGrzH1I="}]},"_npmUser":{"name":"antoniosbarotsis","email":"antonios.barotsis@tutanota.com"},"directories":{},"maintainers":[{"name":"antoniosbarotsis","email":"antonios.barotsis@tutanota.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fake-db_0.4.1_1618415825081_0.7129296838634336"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-11T00:51:58.140Z","1.0.0":"2021-04-11T00:51:58.386Z","modified":"2022-04-04T14:23:23.736Z","0.0.1":"2021-04-11T00:52:16.413Z","0.0.2":"2021-04-11T01:07:40.939Z","0.3.1":"2021-04-12T02:28:43.181Z","0.4.0":"2021-04-14T15:52:12.903Z","0.4.1":"2021-04-14T15:57:05.267Z"},"maintainers":[{"name":"antoniosbarotsis","email":"antonios.barotsis@tutanota.com"}],"homepage":"https://github.com/AntoniosBarotsis/fakeDB#readme","keywords":["mock","api","in-memory-database"],"repository":{"type":"git","url":"git+https://github.com/AntoniosBarotsis/fakeDB.git"},"bugs":{"url":"https://github.com/AntoniosBarotsis/fakeDB/issues"},"license":"MIT","readme":"[![NPM License](https://img.shields.io/npm/l/all-contributors.svg?style=flat)](https://github.com/AntoniosBarotsis/fakeDB/blob/master/LICENSE)\r\n[![NPM Version](https://img.shields.io/npm/v/@antoniosbarotsis/fake-db?style=flat)](https://www.npmjs.com/package/@antoniosbarotsis/fake-db)\r\n[![NPM Downloads](https://img.shields.io/npm/dt/@antoniosbarotsis/fake-db)](https://www.npmjs.com/package/@antoniosbarotsis/fake-db)\r\n\r\n# Fake-DB\r\n\r\n## What is it ?\r\n\r\nFake-DB reads in a json file and automatically creates various endpoints\r\non an express server. The point of this is for it to be used as an API\r\nmock to aid front-end development.\r\n\r\n## Installation and Start-Up\r\n\r\nInstall the package with `npm i @antoniosbarotsis/fake-db`.\r\n\r\nMake sure to create a `data.json` file at the root of\r\nyour project.\r\n\r\nTo use it you just have to import it and run `start()`\r\n\r\n```js\r\nconst db = require('@antoniosbarotsis/fake-db')\r\n\r\ndb.start(8000) // Starts the server\r\n```\r\n\r\nAlternatively you can do the following:\r\n\r\n```js\r\nconst { start } = require('@antoniosbarotsis/fake-db')\r\n\r\nstart(8000)\r\n```\r\n\r\nThe `start` method takes in the port and filename as an arguments. If no port is specified then\r\n`process.env.PORT` will be used. If that is also undefined then `8000` will be picked. The default\r\nfile name is `data.json`.\r\n\r\n## Usage\r\n\r\nThe package picks up the objects you input at the\r\n`data.json` file and automatically creates endpoints for them.\r\n\r\nIf we for example have the following in the file:\r\n\r\n```json\r\n{\r\n  \"users\": [\r\n    {\r\n      \"name\": \"Tony\"\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\nOnce we run the application endpoints will be generated under the\r\npath `http://localhost:8000/users`.\r\n\r\nThe file will be modified by now to this:\r\n\r\n```json\r\n{\r\n  \"users\": [{\r\n      \"name\": \"Tony\",\r\n      \"id\": 1\r\n  }],\r\n  \"state\": {\r\n      \"users\": {\r\n        \"counter\": 1\r\n      }\r\n  }\r\n}\r\n```\r\n\r\nYou'll see that our user has a new generated `id` attribute. In\r\naddition a new state object has appeared which is used to keep track of\r\ncertain data that is neededbehind the scenes (as of now\r\nit only keeps track of the counters needed\r\nfor id generation).\r\n\r\n## Endpoints\r\n\r\nThis might change in the future but for now for every entry in the json\r\nfile the following endpoints are created (using `users` as an example):\r\n\r\n- GET /users\r\n- GET /users/:id\r\n- POST /users\r\n- PUT /users/:id\r\n- DELETE /users/:id\r\n\r\nIn other words you can:\r\nGet all users, get a specific user by his id, add a new user (needs\r\nrequest body) update a user by id (also requires request body) and\r\ndelete a user by id.\r\n\r\nFor now the PUT request needs all of the fields a user normally has\r\n(minus the id) but in the future that might change to any number of\r\nfields.\r\n","readmeFilename":"README.md","description":"[![NPM License](https://img.shields.io/npm/l/all-contributors.svg?style=flat)](https://github.com/AntoniosBarotsis/fakeDB/blob/master/LICENSE)\r [![NPM Version](https://img.shields.io/npm/v/@antoniosbarotsis/fake-db?style=flat)](https://www.npmjs.com/packa"}