{"_id":"@ctuanle/json-serve","_rev":"3-ea3e16939038cda254373e8cf3ae41c7","name":"@ctuanle/json-serve","dist-tags":{"latest":"1.0.3-beta"},"versions":{"1.0.0":{"name":"@ctuanle/json-serve","version":"1.0.0","description":"Light, simple yet fast and useful tool for creating fake rest api.","keywords":["rest","api","json"],"repository":{"type":"git","url":"git+ssh://git@github.com/ctuanle/json-serve.git"},"author":{"name":"ctuanle"},"license":"MIT","main":"dist/index.js","bin":{"jss":"dist/index.js"},"scripts":{"start":"node .","build":"tsc","build:watch":"tsc --watch","dev":"nodemon","install:local":"yarn build && yarn remove @ctuanle/json-serve --silent && yarn add --dev file:./","prepare":"husky install"},"dependencies":{},"devDependencies":{"@ctuanle/json-serve":"file:./","@types/express":"^4.17.13","@types/node":"^18.0.3","@typescript-eslint/eslint-plugin":"^5.30.5","@typescript-eslint/parser":"^5.30.5","eslint":"^8.19.0","eslint-config-airbnb-typescript":"^17.0.0","eslint-config-prettier":"^8.5.0","husky":"^8.0.1","lint-staged":"^13.0.3","nodemon":"^2.0.19","prettier":"^2.7.1","typescript":"^4.7.4"},"nodemonConfig":{"watch":["dist"],"ext":"js","exec":"yarn start","delay":2500},"lint-staged":{"*.{ts,js}":"yarn eslint","*.{ts,js,json,md,yml}":"yarn prettier -w"},"eslintConfig":{"env":{"browser":true,"es2021":true},"extends":["airbnb-typescript","prettier","eslint:recommended"],"parser":"@typescript-eslint/parser","parserOptions":{"ecmaVersion":"latest","sourceType":"module","project":"tsconfig.json"},"plugins":["@typescript-eslint"],"rules":{"valid-jsdoc":"off","require-jsdoc":"off","new-cap":"off","react/jsx-filename-extension":"off","import/extensions":"off","import/no-extraneous-dependencies":"off"},"ignorePatterns":["node_modules","dist","*.lock","README.md"]},"prettier":{"printWidth":100,"singleQuote":true,"tabWidth":2,"trailingComma":"es5"},"gitHead":"122fba4c0c7eebc8d0f93362b7cda26b4251bafb","bugs":{"url":"https://github.com/ctuanle/json-serve/issues"},"homepage":"https://github.com/ctuanle/json-serve#readme","_id":"@ctuanle/json-serve@1.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.13.1","dist":{"integrity":"sha512-rnV7cwHaV+WW+MNt1tS8dfMnTBOUUnvNQss5MWAl+aTIXj7GiY36DfMv5Py5U9DrCD0zi7rih7uAQ47DwL84Tg==","shasum":"288674d65fc6815692851cbc56c25e54c73f0457","tarball":"https://registry.npmjs.org/@ctuanle/json-serve/-/json-serve-1.0.0.tgz","fileCount":16,"unpackedSize":56149,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzXVNhR2JY+vwSl/2Bb1ylV6CQ522Mor8gwqxgYYZvpQIhAPCAslCdw8JdRAb3NY7n7fslDh5+iQpeqtnDjt9PcwSd"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSypuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYNA//ZYq/FcteVXDLX8g/aov8Waqpe5h1l8vrCA7Ag6gXb5gRa+Ua\r\nmk2lyNc3PvFmYdpI5bGF/sdAPpMSVZqaXSJYvfBTHrq5h6/OqP+xADZNiXZM\r\n7ZvtmfRjuGNzoQ9M9iBJ75atCiiICOSb6Z0+buRKolwSANE81F7EyigVf27e\r\nB4qFx5qM0mvr1gXOwZWDpLjVOY39G8Gzjp3fKbrypCrU3E+K7YGE+Y1jIrRW\r\ngOdv7TY+UclK51DFgEhX/VGUZRT4oVzQmYLCp0uxi0gaKjI2cNrMcxpArQix\r\n0TL6ABEnecd3WZ6RSrj/dgCI52gSudVebl+bTPxOwouOgQXV2aBtIvdDLfLt\r\nx7KSkcGWNJOCgAIep73V8nTKAiBSQdaGAoT4zRrZQeFwjcH2umHqYGTKPSUB\r\nyOSEuAgJEWl1KHidhtT4mbfAuZpHAwrvyAUEEundEDlQgKsRO3lD/+6aQTNZ\r\nlMmNO8tlD9Jn4gcdOZgfAqMbvhI5TNdPIfmve86WDgSLCH/zotbOTvtAWwSI\r\nXOW5DuJ2FKYJjSjuDtcIBNrRpl/ULSTbnMR3BrlBdOamWYqK8FJ1b0m5x1XS\r\nCbBwOXLDlCoPbGOikkViceTUw9+vb8FGf5xZt8+Wzi0YL6p89EpDNDxXT8zb\r\nS1d9ipJGd0Eq0cNzNAwZZPf52wTenHkNryE=\r\n=skmX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctuanle","email":"t22p8nr0@duck.com"},"directories":{},"maintainers":[{"name":"ctuanle","email":"t22p8nr0@duck.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-serve_1.0.0_1665870445943_0.10575071596155938"},"_hasShrinkwrap":false},"1.0.1-beta":{"name":"@ctuanle/json-serve","version":"1.0.1-beta","description":"Light, simple yet fast and useful tool for creating fake rest api.","keywords":["rest","api","json"],"repository":{"type":"git","url":"git+ssh://git@github.com/ctuanle/json-serve.git"},"author":{"name":"ctuanle"},"license":"MIT","main":"dist/index.js","bin":{"jss":"dist/index.js"},"scripts":{"start":"node .","build":"tsc","build:watch":"tsc --watch","dev":"nodemon","install:local":"yarn build && yarn remove @ctuanle/json-serve --silent && yarn add --dev file:./","prepare":"husky install"},"dependencies":{},"devDependencies":{"@ctuanle/json-serve":"file:./","@types/express":"^4.17.13","@types/node":"^18.0.3","@typescript-eslint/eslint-plugin":"^5.30.5","@typescript-eslint/parser":"^5.30.5","eslint":"^8.19.0","eslint-config-airbnb-typescript":"^17.0.0","eslint-config-prettier":"^8.5.0","husky":"^8.0.1","lint-staged":"^13.0.3","nodemon":"^2.0.19","prettier":"^2.7.1","typescript":"^4.7.4"},"nodemonConfig":{"watch":["dist"],"ext":"js","exec":"yarn start","delay":2500},"lint-staged":{"*.{ts,js}":"yarn eslint","*.{ts,js,json,md,yml}":"yarn prettier -w"},"eslintConfig":{"env":{"browser":true,"es2021":true},"extends":["airbnb-typescript","prettier","eslint:recommended"],"parser":"@typescript-eslint/parser","parserOptions":{"ecmaVersion":"latest","sourceType":"module","project":"tsconfig.json"},"plugins":["@typescript-eslint"],"rules":{"valid-jsdoc":"off","require-jsdoc":"off","new-cap":"off","react/jsx-filename-extension":"off","import/extensions":"off","import/no-extraneous-dependencies":"off"},"ignorePatterns":["node_modules","dist","*.lock","README.md"]},"prettier":{"printWidth":100,"singleQuote":true,"tabWidth":2,"trailingComma":"es5"},"gitHead":"1e9a3f710129f16efbf87685d349b8f6485b53f3","bugs":{"url":"https://github.com/ctuanle/json-serve/issues"},"homepage":"https://github.com/ctuanle/json-serve#readme","_id":"@ctuanle/json-serve@1.0.1-beta","_nodeVersion":"16.13.1","_npmVersion":"8.13.1","dist":{"integrity":"sha512-POq6Xkl9v00Duub8wyX9kCnwuyTud4A6EQI5Ke68AqdbermFPjARdimGOMfURdfwPOVSEqp4VfWwhhdpm+yPDg==","shasum":"a9067e8fa0de374425c802c4e458b0e89228ec7d","tarball":"https://registry.npmjs.org/@ctuanle/json-serve/-/json-serve-1.0.1-beta.tgz","fileCount":16,"unpackedSize":55886,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIES/cIHxuJOFNtVx9GzrngbflE1S61UJR4l4ssQLpysCAiBqtmnFASeHojuWJINaKXKwYpLFAjFfkIfcTUcNC+I9Kw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTx7aACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpfrRAAh96kIC8YV0pWHOZoEF59Noq+OBgAcU1IyejIVy8CHzp4PO/V\r\ndbYvuHRDtL2WX8l/UYQUHmd1goqrz+AZQmE/m50+UuaXFqqoySGQ1xe6C/QQ\r\nZT+rqVoNI8xwKzdZnkCdAmfxww8q919Z27YNYBfVdqhtOVsz8AS6bH6SK95f\r\neF5SFocHxCeEF3yHzI+xbjO5LSUbFm3rTB+l4AR0EhG/np2ncQ1Ypkt4A36D\r\nyzWa9TdCj+KVHuqq1fTv6ByXOFtdrFlln8UrImpuV5uTytBjH25LvfDEGLxy\r\nzu7mxyXt8bi112CLh0fHjuVhRF9BHJXRu5pzyc+Meo+QvIHgY1FzrfPwqMe9\r\ncUSta/9rdG77sRs2ChyMMqLICo5v7qFzXJCzpxb8IIawdP6cC4i7ljXd03En\r\ngXEu4JG1j8xPF7jeRr6inl24cB3l/FYqeVEVLs0P/7En70NUHPpxWlPNrXcM\r\nkSukluXkeLJzds41BEdsN74sdhSuiOr2spC6suwpwQimI4bxytyrdvTW0kj/\r\n306xmVcYCMecTsz3L8myVTgdoXGIRnbQSoDzIyhcjTLheebLa40SKogbaFSc\r\nLUiGCsHfrMCCAw49zdcm92+bI+BXPiGN0vTtRMEJrf02u1XRrXvhu//PGnWh\r\noLt3nQPt+HCaTKYdJ/rDx2v22ByZ3qMR2Aw=\r\n=D/LB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctuanle","email":"t22p8nr0@duck.com"},"directories":{},"maintainers":[{"name":"ctuanle","email":"t22p8nr0@duck.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-serve_1.0.1-beta_1666129626726_0.3462480264887595"},"_hasShrinkwrap":false},"1.0.2-beta":{"name":"@ctuanle/json-serve","version":"1.0.2-beta","description":"Light, simple yet fast and useful tool for creating fake rest api.","keywords":["rest","api","json"],"repository":{"type":"git","url":"git+ssh://git@github.com/ctuanle/json-serve.git"},"author":{"name":"ctuanle"},"license":"MIT","main":"dist/index.js","bin":{"jss":"dist/index.js"},"scripts":{"start":"node .","build":"tsc","build:watch":"tsc --watch","dev":"nodemon","install:local":"yarn build && yarn remove @ctuanle/json-serve --silent && yarn add --dev file:./","prepare":"husky install"},"dependencies":{},"devDependencies":{"@ctuanle/json-serve":"file:./","@types/express":"^4.17.13","@types/node":"^18.0.3","@typescript-eslint/eslint-plugin":"^5.30.5","@typescript-eslint/parser":"^5.30.5","eslint":"^8.19.0","eslint-config-airbnb-typescript":"^17.0.0","eslint-config-prettier":"^8.5.0","husky":"^8.0.1","lint-staged":"^13.0.3","nodemon":"^2.0.19","prettier":"^2.7.1","typescript":"^4.7.4"},"nodemonConfig":{"watch":["dist"],"ext":"js","exec":"yarn start","delay":2500},"lint-staged":{"*.{ts,js}":"yarn eslint","*.{ts,js,json,md,yml}":"yarn prettier -w"},"eslintConfig":{"env":{"browser":true,"es2021":true},"extends":["airbnb-typescript","prettier","eslint:recommended"],"parser":"@typescript-eslint/parser","parserOptions":{"ecmaVersion":"latest","sourceType":"module","project":"tsconfig.json"},"plugins":["@typescript-eslint"],"rules":{"valid-jsdoc":"off","require-jsdoc":"off","new-cap":"off","react/jsx-filename-extension":"off","import/extensions":"off","import/no-extraneous-dependencies":"off"},"ignorePatterns":["node_modules","dist","*.lock","README.md"]},"prettier":{"printWidth":100,"singleQuote":true,"tabWidth":2,"trailingComma":"es5"},"gitHead":"b2122a2ae35c34a8573762aeea438e193a269871","bugs":{"url":"https://github.com/ctuanle/json-serve/issues"},"homepage":"https://github.com/ctuanle/json-serve#readme","_id":"@ctuanle/json-serve@1.0.2-beta","_nodeVersion":"16.13.1","_npmVersion":"8.3.1","dist":{"integrity":"sha512-4/SGX6j9Ur3I00mqVizzJjJdeQMU+2tNXjXsp/ZqX32XnukT1ZrJI7pMUgz+na95+YJeJHkJ64OZlnJ2VgO1sg==","shasum":"3e11f5a671daa61e645c43be73ab489cbe838401","tarball":"https://registry.npmjs.org/@ctuanle/json-serve/-/json-serve-1.0.2-beta.tgz","fileCount":14,"unpackedSize":50683,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgl9Pt+9DiGPpfFcWeI4kPq6HKDkB7ybzdwjam7YT0ZAIhAMYQuei0/LTZwLNVoVKEiOglKbtsg2AyQke7idlDZhUj"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjVdUlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq4IQ//SFklrC+1EUDhAqP2PZSibNupo98cQNvazDqGPi5LwC7i+6Kt\r\nl6v7073L3a0zsIaAR1J/4Qf+a4fUBPB2LU+Z4amjyoNMBXMNOGqwY+If5ctQ\r\nB38XlW4oYoZNCMmP2GZJvySIVdFJ5RpTjrjjFN6Rr83uul4SWLEMikANFVkq\r\naHATXV8jU4C8g0I30RrJOQr3Qh0reEwaNdvU05IZw16Jr0zL1AS241b7cobu\r\nYZb0EaevvcTctikkmKl9ZlkFumKdKRD2KsPLVCGRISlZk6aTE2ooK1Nh/iAD\r\nyCOcNcUrBVIRuBIIc3O2rbCw0qMbQw++vN/oKc4Xuia1VnQD2f/5UjUS8HDP\r\nYNflIK1j6d4UbN6YJxTv9vDKz8vTeJTobnc4537+XYcX53NphWwXF9Fwbhg3\r\nYpa3TuxNg5+0G2XMfOT+4q19tPLnzzFD6xAefJ0Ue+8BG+YSaeNdWX945lBf\r\n8nA95UkAosXuZRiUoAo/fZhxtZXFXGlKEKUzubxzX8t5GLzQxx8NySsBzd6g\r\nLcAF0YNMQr4axnynERiWbOxToNLGuspgDvbyKTQ7qo9o3NMKy0TOklnwIhT0\r\nhxj8oErBFtT1lGs0Eea8y7einlDzOHV4T2Yrs9onPQByww3Mt1ljarvMzuCl\r\nk9DDO7VyQcGpBkLdKSaou90mBXOYhJJDHQQ=\r\n=4IgT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctuanle","email":"t22p8nr0@duck.com"},"directories":{},"maintainers":[{"name":"ctuanle","email":"t22p8nr0@duck.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-serve_1.0.2-beta_1666569509519_0.567071926708933"},"_hasShrinkwrap":false},"1.0.3-beta":{"name":"@ctuanle/json-serve","version":"1.0.3-beta","description":"Light, simple yet fast and useful tool for creating fake rest api.","keywords":["rest","api","json"],"repository":{"type":"git","url":"git+ssh://git@github.com/ctuanle/json-serve.git"},"author":{"name":"ctuanle"},"license":"MIT","main":"dist/index.js","bin":{"jss":"dist/index.js"},"scripts":{"start":"node .","build":"tsc","build:watch":"tsc --watch","dev":"nodemon","install:local":"yarn build && yarn remove @ctuanle/json-serve --silent && yarn add --dev file:./","prepare":"husky install"},"dependencies":{},"devDependencies":{"@ctuanle/json-serve":"file:./","@types/express":"^4.17.13","@types/node":"^18.0.3","@typescript-eslint/eslint-plugin":"^5.30.5","@typescript-eslint/parser":"^5.30.5","eslint":"^8.19.0","eslint-config-airbnb-typescript":"^17.0.0","eslint-config-prettier":"^8.5.0","husky":"^8.0.1","lint-staged":"^13.0.3","nodemon":"^2.0.19","prettier":"^2.7.1","typescript":"^4.7.4"},"nodemonConfig":{"watch":["dist"],"ext":"js","exec":"yarn start","delay":2500},"lint-staged":{"*.{ts,js}":"yarn eslint","*.{ts,js,json,md,yml}":"yarn prettier -w"},"eslintConfig":{"env":{"browser":true,"es2021":true},"extends":["airbnb-typescript","prettier","eslint:recommended"],"parser":"@typescript-eslint/parser","parserOptions":{"ecmaVersion":"latest","sourceType":"module","project":"tsconfig.json"},"plugins":["@typescript-eslint"],"rules":{"valid-jsdoc":"off","require-jsdoc":"off","new-cap":"off","react/jsx-filename-extension":"off","import/extensions":"off","import/no-extraneous-dependencies":"off"},"ignorePatterns":["node_modules","dist","*.lock","README.md"]},"prettier":{"printWidth":100,"singleQuote":true,"tabWidth":2,"trailingComma":"es5"},"gitHead":"e2e7c668fb573b6af3688c8a116a362407f9b64b","bugs":{"url":"https://github.com/ctuanle/json-serve/issues"},"homepage":"https://github.com/ctuanle/json-serve#readme","_id":"@ctuanle/json-serve@1.0.3-beta","_nodeVersion":"16.13.1","_npmVersion":"8.3.1","dist":{"integrity":"sha512-E+pTRjr/PHaGu/jTYAwG+3gaQQK4ZHXQS7K8NVuV5A7U/zeuP/cLcMReZFTtz/uU89rf0xN49JXx/YF++bkN/w==","shasum":"48b0254db0eae4b9d6f7c58ca1dfb462df79cef5","tarball":"https://registry.npmjs.org/@ctuanle/json-serve/-/json-serve-1.0.3-beta.tgz","fileCount":14,"unpackedSize":50548,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHpO0xgVRfQ6W2PFby15Z4+zU4fc3xjnfqYMZhV8oI2GAiEAwMYg93pGVDZ8yBQ6glGRwReh6xjmKvb4DbdtiJBoBIs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjVk0lACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpvWA//fKMq09c0rmXIBHYpYgwmE3L94L/0+Mo6rl3IhjvJk9iXNdPY\r\ncERvFZmsu+7lI7oAm+dsqG+vFiSM/O6dWpdP7NrsQaqsTy+FAyyNDwI6VAQz\r\nQffVvY869Zk/lkEZLK4Urvpg+HdKou1yOl2OmTgPU7up2tEkBvevg7C6vtFq\r\nIijCCP+F7onndr4DQt28sK54OP8a6XkSso2Em+yI3b/0SlBNFkGMsQGWdnFm\r\nva7pE3HDeP/lj9+54XsqQ5HRrZ5d8fWZHHYbTkJqgEKvxYFaXq/V3EWIiswO\r\nyAwT9f9yLKlYAyzcVzA6y5FzieLOgEIy3msHt+NEACRY0FTKnNlOgzsNtdCi\r\ndpvWL7Jg2Xnz2+8kbRTFoTBRRkW3FZKer6mOc9FlreerRck+M1KLtKxaZWn7\r\nhImvPWQwiUQ0GrRG1L493VDkL/9Yewbi9OAssm5yU9zasGTJWoSr+LdVWZEL\r\nFWY3xiittz+dYgKZCXF9icCNGx51bcI4QnXuIyN10yLB/6Rh/GrJIuf/t4zD\r\nurni31rB2wRwJPv/1hqQMfgrjZBQQV7HgPxM84e8BuLnPSflWjMRAFXwC2bO\r\nyFyfBbCvwEEJvw+5jaUVBVRj2P8hj1FK99Pu6rcXviuvK/RSOuenSM1860jS\r\ndbPTK+Zx6knW2asa2ll++lYTzhqOccW281w=\r\n=fxce\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctuanle","email":"t22p8nr0@duck.com"},"directories":{},"maintainers":[{"name":"ctuanle","email":"t22p8nr0@duck.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-serve_1.0.3-beta_1666600229462_0.9539460846042833"},"_hasShrinkwrap":false}},"time":{"created":"2022-10-15T21:47:25.894Z","1.0.0":"2022-10-15T21:47:26.177Z","modified":"2022-10-24T08:30:29.745Z","1.0.1-beta":"2022-10-18T21:47:06.952Z","1.0.2-beta":"2022-10-23T23:58:29.638Z","1.0.3-beta":"2022-10-24T08:30:29.673Z"},"maintainers":[{"name":"ctuanle","email":"t22p8nr0@duck.com"}],"description":"Light, simple yet fast and useful tool for creating fake rest api.","homepage":"https://github.com/ctuanle/json-serve#readme","keywords":["rest","api","json"],"repository":{"type":"git","url":"git+ssh://git@github.com/ctuanle/json-serve.git"},"author":{"name":"ctuanle"},"bugs":{"url":"https://github.com/ctuanle/json-serve/issues"},"license":"MIT","readme":"## JSON-Serve\n\nLightweight, simple yet fast and useful tool that help you create a fake rest-api for your frontend by serving a json file.\n\n## Installation\n\n```shell\nyarn add @ctuanle/json-serve --dev\n```\n\nor\n\n```shell\nnpm install @ctuanle/json-serve --save-dev\n```\n\n## Demo\n\nA [simple demo](./demo) on [fly.io](https://fly.io/). Here is the base api of my demo:\n\n```shell\nhttps://jss-demo.fly.dev/\n```\n\n## Usage\n\n```shell\nyarn jss [json-path] [port] [other-options]\n```\n\n| Options     | Required |  Default  | Description                 |\n| :---------- | :------: | :-------: | :-------------------------- |\n| json-path   |    no    | data.json | Path to your json file      |\n| port        |    no    |   3000    | Port on which server run    |\n| --no-strict |    no    |   false   | Turn on no-strict mode      |\n| --readonly  |    no    |   false   | Turn on readonly mode       |\n| --persist   |    no    |   false   | Turn on save-change-to-disk |\n\n### Available methods\n\n- GET\n- POST\n- PUT\n- DELETE\n- OPTIONS\n\n### No-strict mode\n\nBy default, you can only post/put/delete to array data. But in no-strict mode, these action are allowed with object type (key-value).\n\n### Read-only mode\n\nIn this mode, only GET requests are allowed. Default is false.\n\n### Persist\n\nSave changes created by POST/PUT/DELETE to your json file. Default is false, so changes are kept only on memory and will be deleted when you turn server off.\n\n### Example\n\nYou've create a data.json file:\n\n```shell\nyarn jss data.json 3000\n```\n\nOr if you're too lazy and you don't specify a path, a prompt will appear and ask you if you want to create one with pre-defined data for you:\n\n```shell\nyarn jss\n```\n\nYou want to serve your json file and persist changes:\n\n```shell\nyarn jss data.json 3000 --persist\n```\n\n## Details\n\nIf your json file contains this content:\n\n```json\n{\n  \"method\": [\n    {\n      \"name\": \"GET\"\n    },\n    {\n      \"name\": \"POST\"\n    }\n  ],\n  \"protocol\": {\n    \"1\": \"HTTP\",\n    \"2\": \"UDP\"\n  }\n}\n```\n\nAll available routes are:\n\n```ts\n/method\n/method/[index]\n/protocol\n/protocol/[index]\n```\n\n### GET\n\nTo get \"protocol\", you can go with `GET /protocol`.\n\nOr to get all methods, go with `GET /method`.\n\nPlus, with array data, you can filter it with query, for example, to get all method that name is \"GET\", `GET /method?name=GET`\n\n### POST\n\nWith post request, you can update your json file.\n\nIf the target resources is an array, received data will be pushed into the array.\n\nEx: `POST /method` with body `{\"name\": \"PUT\"}` will turn above data into\n\n```json\n{\n  \"method\": [\n    {\n      \"name\": \"GET\"\n    },\n    {\n      \"name\": \"POST\"\n    },\n    {\n      \"name\": \"PUT\"\n    }\n  ],\n  \"protocol\": {\n    \"1\": \"HTTP\",\n    \"2\": \"UDP\"\n  }\n}\n```\n\nPlease note that if you edit json file manually while the server is running, edited data won't be seen by the server. In that case, restart the server.\n\n### PUT\n\n`PUT /protocol/0` with body `{\"name\": \"PATCH\"}` and `PUT /protocol/2` with body `\"TCP\"` will turn above data into:\n\n```json\n{\n  \"method\": [\n    {\n      \"name\": \"PATCH\"\n    },\n    {\n      \"name\": \"POST\"\n    },\n    {\n      \"name\": \"PUT\"\n    }\n  ],\n  \"protocol\": {\n    \"1\": \"HTTP\",\n    \"2\": \"TCP\"\n  }\n}\n```\n\n#### DELETE\n\nWith DELETE requests, you can delete a specific data.\n\n`DELETE /method/2` and `DELETE /protocol/2` will turn above data into:\n\n```json\n{\n  \"method\": [\n    {\n      \"name\": \"PATCH\"\n    },\n    {\n      \"name\": \"POST\"\n    },\n    null\n  ],\n  \"protocol\": {\n    \"1\": \"HTTP\",\n    \"2\": null\n  }\n}\n```\n\n## Screenshots\n\nColorful console logging:\n\n![Logging Console](./public/console.png 'Logging console')\n\nSample response:\n\n![Server response](./public/sample.png 'Sample response')\n","readmeFilename":"README.md"}