{"_id":"@consolelabs/mochi-mock","_rev":"8-ad85118712bb909ee6112d5a94c7da9b","name":"@consolelabs/mochi-mock","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"name":"@consolelabs/mochi-mock","version":"0.0.1","description":"<p align=\"center\">   <img src=\"https://github.com/consolelabs/mochi.js/assets/25856620/3a4124dc-5e86-4cfd-b33c-a1ba1aca370f\" alt=\"mochi pose 13\" width=\"40%\" /> </p>","main":"dist/index.js","module":"dist/index.mjs","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"bin":{"mochi-mock":"dist/cli.js"},"keywords":[],"author":{"name":"tuanddd"},"license":"ISC","devDependencies":{"@types/listr":"^0.14.4","@types/prompts":"^2.4.4","@types/recursive-readdir":"^2.2.1","rimraf":"^5.0.1","tsup":"^7.2.0","typescript":"^5.1.6"},"dependencies":{"listr":"^0.14.3","minimatch":"^9.0.3","prompts":"^2.4.2","recursive-readdir":"^2.2.3"},"scripts":{"clean":"rimraf dist","build":"pnpm clean && tsup --entry src/index.ts --entry src/cli.ts --format cjs,esm --dts"},"types":"./dist/index.d.ts","_id":"@consolelabs/mochi-mock@0.0.1","_integrity":"sha512-riyhrVwMqc/4n7nz1ha7AwRr1eAT/ctgk20QvtrqAlL7kDVA/boEv4xWJcsAW7TbOglBhIFhlIl8HlPJl5pyZQ==","_resolved":"/private/var/folders/mw/r4366z0x3xnb_l0521bcwfj40000gn/T/07fca6b2ca6ce1dd77094f7c54cf9551/consolelabs-mochi-mock-0.0.1.tgz","_from":"file:consolelabs-mochi-mock-0.0.1.tgz","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-riyhrVwMqc/4n7nz1ha7AwRr1eAT/ctgk20QvtrqAlL7kDVA/boEv4xWJcsAW7TbOglBhIFhlIl8HlPJl5pyZQ==","shasum":"9dc762e7d7c8b6fb5a47967c6581e2f1cb3492ed","tarball":"https://registry.npmjs.org/@consolelabs/mochi-mock/-/mochi-mock-0.0.1.tgz","fileCount":16,"unpackedSize":37138,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEqJPHCvWMN8+eOpDY8uLEUeVT6b4gEAcf+PjUxfszbcAiEAvaYug5OOSqn9VVHQQMSZnN+VUx1nUgTxKbCw/08HY6Q="}]},"_npmUser":{"name":"daotuan","email":"heryhudson@gmail.com"},"directories":{},"maintainers":[{"name":"daotuan","email":"heryhudson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mochi-mock_0.0.1_1692860436143_0.06814330277287461"},"_hasShrinkwrap":false},"0.0.2":{"name":"@consolelabs/mochi-mock","version":"0.0.2","description":"<p align=\"center\">   <img src=\"https://github.com/consolelabs/mochi.js/assets/25856620/3a4124dc-5e86-4cfd-b33c-a1ba1aca370f\" alt=\"mochi pose 13\" width=\"40%\" /> </p>","main":"dist/index.js","module":"dist/index.mjs","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"bin":{"mochi-mock":"dist/cli.js"},"keywords":[],"author":{"name":"tuanddd"},"license":"ISC","devDependencies":{"@types/listr":"^0.14.4","@types/prompts":"^2.4.4","@types/recursive-readdir":"^2.2.1","rimraf":"^5.0.1","tsup":"^7.2.0","typescript":"^5.1.6"},"dependencies":{"listr":"^0.14.3","minimatch":"^9.0.3","pino":"^8.15.0","pino-pretty":"^10.2.0","prompts":"^2.4.2","recursive-readdir":"^2.2.3"},"scripts":{"clean":"rimraf dist","build":"pnpm clean && tsup --entry src/index.ts --entry src/cli.ts --format cjs,esm --dts"},"types":"./dist/index.d.ts","_id":"@consolelabs/mochi-mock@0.0.2","_integrity":"sha512-FHYJtTRyJ3sqju0V18ECgC8Mu7Eajj7xWY9LgISVTcXTGaxiPm+fPEpKPc6xmrz+Up4roXzF7RzyDlbrreFIZg==","_resolved":"/private/var/folders/mw/r4366z0x3xnb_l0521bcwfj40000gn/T/ca2c5fbaf99dc0ad999977067471c162/consolelabs-mochi-mock-0.0.2.tgz","_from":"file:consolelabs-mochi-mock-0.0.2.tgz","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-FHYJtTRyJ3sqju0V18ECgC8Mu7Eajj7xWY9LgISVTcXTGaxiPm+fPEpKPc6xmrz+Up4roXzF7RzyDlbrreFIZg==","shasum":"1c4ecaf2d7d5756d1e08559b725c2fb8a14d98a1","tarball":"https://registry.npmjs.org/@consolelabs/mochi-mock/-/mochi-mock-0.0.2.tgz","fileCount":18,"unpackedSize":40445,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJpH/gOw8BeFzQ57J5VhjiDMK4Z/Z9VtZMMD1Dc/RrmQIhANTWrzsTskws4MqT4auIXRUuhplVBRZSkKYvNqWhywo6"}]},"_npmUser":{"name":"daotuan","email":"heryhudson@gmail.com"},"directories":{},"maintainers":[{"name":"daotuan","email":"heryhudson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mochi-mock_0.0.2_1692863768976_0.723009445215526"},"_hasShrinkwrap":false},"0.0.3":{"name":"@consolelabs/mochi-mock","version":"0.0.3","description":"<p align=\"center\">   <img src=\"https://github.com/consolelabs/mochi.js/assets/25856620/3a4124dc-5e86-4cfd-b33c-a1ba1aca370f\" alt=\"mochi pose 13\" width=\"40%\" /> </p>","main":"dist/index.js","module":"dist/index.mjs","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"bin":{"mochi-mock":"dist/cli/index.js"},"keywords":[],"author":{"name":"tuanddd"},"license":"ISC","devDependencies":{"@types/listr":"^0.14.4","@types/prompts":"^2.4.4","@types/recursive-readdir":"^2.2.1","rimraf":"^5.0.1","tsup":"^7.2.0","typescript":"^5.1.6"},"peerDependencies":{"wretch":"^2.x.x"},"dependencies":{"@faker-js/faker":"^8.0.2","listr":"^0.14.3","meow":"^9.0.0","minimatch":"^9.0.3","pino":"^8.15.0","pino-pretty":"^10.2.0","prompts":"^2.4.2","recursive-readdir":"^2.2.3"},"scripts":{"clean":"rimraf dist","build":"pnpm clean && tsup --entry src/index.ts --entry src/cli/index.ts --format cjs,esm --dts"},"types":"./dist/index.d.ts","_id":"@consolelabs/mochi-mock@0.0.3","_integrity":"sha512-GXxzlFT1WNr+ZSjbj3Y8gGkrwMc6C/yGv9hw0OWJ/8xmERLCcXO3r0f/ChGyJkA9o47zbvXipOJPl9fquiQEHg==","_resolved":"/private/var/folders/mw/r4366z0x3xnb_l0521bcwfj40000gn/T/1052cf809f6d6cb8628b8259476c8e31/consolelabs-mochi-mock-0.0.3.tgz","_from":"file:consolelabs-mochi-mock-0.0.3.tgz","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-GXxzlFT1WNr+ZSjbj3Y8gGkrwMc6C/yGv9hw0OWJ/8xmERLCcXO3r0f/ChGyJkA9o47zbvXipOJPl9fquiQEHg==","shasum":"49d37176f7a639d2ae13c88b5bd5ae5dd7882a64","tarball":"https://registry.npmjs.org/@consolelabs/mochi-mock/-/mochi-mock-0.0.3.tgz","fileCount":20,"unpackedSize":60832,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuSjwvzds9rcRg+blm3cld2zH2z3vILsJzjEHN86LZMgIgXVqpeOlBwFBGps4tWRu2Zvs0HR4FPY6r9nL/MzsL/YA="}]},"_npmUser":{"name":"daotuan","email":"heryhudson@gmail.com"},"directories":{},"maintainers":[{"name":"daotuan","email":"heryhudson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mochi-mock_0.0.3_1693156461343_0.5891796383936843"},"_hasShrinkwrap":false},"0.0.4":{"name":"@consolelabs/mochi-mock","version":"0.0.4","description":"<p align=\"center\">   <img src=\"https://github.com/consolelabs/mochi.js/assets/25856620/ea835197-5ed7-45e3-a42f-3e696dfd11fb\" alt=\"mochi pose 04\" width=\"40%\" /> </p>","main":"dist/index.js","module":"dist/index.mjs","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"bin":{"mochi-mock":"dist/cli/index.js"},"keywords":[],"author":{"name":"tuanddd"},"license":"ISC","devDependencies":{"@types/listr":"^0.14.4","@types/prompts":"^2.4.4","@types/recursive-readdir":"^2.2.1","rimraf":"^5.0.1","tsup":"^7.2.0","typescript":"^5.1.6"},"peerDependencies":{"wretch":"^2.x.x"},"dependencies":{"@faker-js/faker":"^8.0.2","listr":"^0.14.3","meow":"^9.0.0","minimatch":"^9.0.3","pino":"^8.15.0","pino-pretty":"^10.2.0","prompts":"^2.4.2","recursive-readdir":"^2.2.3"},"scripts":{"clean":"rimraf dist","build":"pnpm clean && tsup --entry src/index.ts --entry src/cli/index.ts --format cjs,esm --dts"},"types":"./dist/index.d.ts","_id":"@consolelabs/mochi-mock@0.0.4","_integrity":"sha512-1qNtbdRv4kvxLiyWPpEGGInMJGPaneYdcbhOBRNsYhVbpzGZftRNvbPGnHYlcKHnUcPHd4/lW8FazZAPoDLxYw==","_resolved":"/private/var/folders/mw/r4366z0x3xnb_l0521bcwfj40000gn/T/ae3fa95d2125e2cd8427a5cf7af5c8e1/consolelabs-mochi-mock-0.0.4.tgz","_from":"file:consolelabs-mochi-mock-0.0.4.tgz","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-1qNtbdRv4kvxLiyWPpEGGInMJGPaneYdcbhOBRNsYhVbpzGZftRNvbPGnHYlcKHnUcPHd4/lW8FazZAPoDLxYw==","shasum":"de854dbdeef5204f15a758f11b16c31484c4e715","tarball":"https://registry.npmjs.org/@consolelabs/mochi-mock/-/mochi-mock-0.0.4.tgz","fileCount":20,"unpackedSize":62505,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCllKMVlua2JuG9C7GBkJjNlz1XnnukxYJ2luDPeJOarQIgLqXFXXxWU57HvbIXnzx+VhtvCjPzgkmZ54M0z3gqrKg="}]},"_npmUser":{"name":"daotuan","email":"heryhudson@gmail.com"},"directories":{},"maintainers":[{"name":"daotuan","email":"heryhudson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mochi-mock_0.0.4_1693189579513_0.8781244151558314"},"_hasShrinkwrap":false},"0.0.5":{"name":"@consolelabs/mochi-mock","version":"0.0.5","description":"<p align=\"center\">   <img src=\"https://github.com/consolelabs/mochi.js/assets/25856620/ea835197-5ed7-45e3-a42f-3e696dfd11fb\" alt=\"mochi pose 04\" width=\"40%\" /> </p>","main":"dist/index.js","module":"dist/index.mjs","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"bin":{"mochi-mock":"dist/cli/index.js"},"keywords":[],"author":{"name":"tuanddd"},"license":"ISC","devDependencies":{"@types/listr":"^0.14.4","@types/prompts":"^2.4.4","@types/recursive-readdir":"^2.2.1","rimraf":"^5.0.1","tsup":"^7.2.0","typescript":"^5.1.6"},"peerDependencies":{"wretch":"^2.x.x"},"dependencies":{"@faker-js/faker":"^8.0.2","listr":"^0.14.3","meow":"^9.0.0","minimatch":"^9.0.3","pino":"^8.15.0","pino-pretty":"^10.2.0","prompts":"^2.4.2","recursive-readdir":"^2.2.3"},"scripts":{"clean":"rimraf dist","build":"pnpm clean && tsup --entry src/index.ts --entry src/cli/index.ts --format cjs,esm --dts"},"types":"./dist/index.d.ts","_id":"@consolelabs/mochi-mock@0.0.5","_integrity":"sha512-3fVzQnNzmTo1xa1F7drLF+VnkBe/N2GAn1ryu6Y5ktjbw5AMcEwQOu0yx0xSHRjKUJX8RpmuDGbQFXYZR9P0MA==","_resolved":"/private/var/folders/mw/r4366z0x3xnb_l0521bcwfj40000gn/T/f77b9d888717bf03f4f9dba18a7d9b97/consolelabs-mochi-mock-0.0.5.tgz","_from":"file:consolelabs-mochi-mock-0.0.5.tgz","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-3fVzQnNzmTo1xa1F7drLF+VnkBe/N2GAn1ryu6Y5ktjbw5AMcEwQOu0yx0xSHRjKUJX8RpmuDGbQFXYZR9P0MA==","shasum":"64d79dcabf0d0cf34abbe4bf9cbaec575878ca6e","tarball":"https://registry.npmjs.org/@consolelabs/mochi-mock/-/mochi-mock-0.0.5.tgz","fileCount":20,"unpackedSize":62753,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCH1ltEzH6IO0S1+LVsUajvilpF55u2ADtCQzbnu2ay5AIgQz0f9XodqI17exJS3v/NW0Mm3uoNQyL6N2Yr3N5aRwQ="}]},"_npmUser":{"name":"daotuan","email":"heryhudson@gmail.com"},"directories":{},"maintainers":[{"name":"daotuan","email":"heryhudson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mochi-mock_0.0.5_1693191843970_0.6431285934128714"},"_hasShrinkwrap":false},"0.0.6":{"name":"@consolelabs/mochi-mock","version":"0.0.6","description":"<p align=\"center\">   <img src=\"https://github.com/consolelabs/mochi.js/assets/25856620/ea835197-5ed7-45e3-a42f-3e696dfd11fb\" alt=\"mochi pose 04\" width=\"40%\" /> </p>","main":"dist/index.js","module":"dist/index.mjs","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"bin":{"mochi-mock":"dist/cli/index.js"},"keywords":[],"author":{"name":"tuanddd"},"license":"ISC","devDependencies":{"@types/listr":"^0.14.4","@types/prompts":"^2.4.4","@types/recursive-readdir":"^2.2.1","rimraf":"^5.0.1","tsup":"^7.2.0","typescript":"^5.1.6"},"peerDependencies":{"wretch":"^2.x.x"},"dependencies":{"@faker-js/faker":"^8.0.2","listr":"^0.14.3","meow":"^9.0.0","minimatch":"^9.0.3","pino":"^8.15.0","pino-pretty":"^10.2.0","prompts":"^2.4.2","recursive-readdir":"^2.2.3"},"scripts":{"clean":"rimraf dist","build":"pnpm clean && tsup --entry src/index.ts --entry src/cli/index.ts --format cjs,esm --dts"},"types":"./dist/index.d.ts","_id":"@consolelabs/mochi-mock@0.0.6","_integrity":"sha512-EOfUNnggDRWrv3TIW3+r3XGj1NghdKJVHAJVDcYeiVLEj6vfu/+O6lxWpi3qJ/9Mt54aGsdyqFZ6Vetm4M6q8w==","_resolved":"/private/var/folders/mw/r4366z0x3xnb_l0521bcwfj40000gn/T/b5718a8a460a6bede3da773b717cd2b9/consolelabs-mochi-mock-0.0.6.tgz","_from":"file:consolelabs-mochi-mock-0.0.6.tgz","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-EOfUNnggDRWrv3TIW3+r3XGj1NghdKJVHAJVDcYeiVLEj6vfu/+O6lxWpi3qJ/9Mt54aGsdyqFZ6Vetm4M6q8w==","shasum":"b01b1d7459bd262046d55ef78bbe1c263ea02d2a","tarball":"https://registry.npmjs.org/@consolelabs/mochi-mock/-/mochi-mock-0.0.6.tgz","fileCount":20,"unpackedSize":62792,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD874BEi1SvMceaKwUj3qB3N/neNd4Q4z3WFT77MYN4hgIgOQzcUGqDd0dhXn/NC79cTeDq+eSIXqSxoHAR4azHDlA="}]},"_npmUser":{"name":"daotuan","email":"heryhudson@gmail.com"},"directories":{},"maintainers":[{"name":"daotuan","email":"heryhudson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mochi-mock_0.0.6_1693192812239_0.10503167492710741"},"_hasShrinkwrap":false},"0.0.7":{"name":"@consolelabs/mochi-mock","version":"0.0.7","description":"<p align=\"center\">   <img src=\"https://github.com/consolelabs/mochi.js/assets/25856620/86864905-d19b-4992-abe9-43111670e0b2\" alt=\"mochi pose 04\" width=\"40%\" /> </p>","main":"dist/index.js","module":"dist/index.mjs","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"bin":{"mochi-mock":"dist/cli/index.js"},"keywords":[],"author":{"name":"tuanddd"},"license":"ISC","devDependencies":{"@types/listr":"^0.14.4","@types/prompts":"^2.4.4","@types/recursive-readdir":"^2.2.1","rimraf":"^5.0.1","tsup":"^7.2.0","typescript":"^5.1.6"},"peerDependencies":{"wretch":"^2.x.x"},"dependencies":{"@faker-js/faker":"^8.0.2","listr":"^0.14.3","meow":"^9.0.0","minimatch":"^9.0.3","pino":"^8.15.0","pino-pretty":"^10.2.0","prompts":"^2.4.2","recursive-readdir":"^2.2.3"},"scripts":{"clean":"rimraf dist","build":"pnpm clean && tsup --entry src/index.ts --entry src/cli/index.ts --format cjs,esm --dts"},"types":"./dist/index.d.ts","_id":"@consolelabs/mochi-mock@0.0.7","_integrity":"sha512-L0b41HIp37IYzeHn79Zee7WkL1D8PZh+eWOwgW2uIwdBDD3KmmXAyfoo5nof1QUl5AmjAbD5AHHW+JlYq6D0ag==","_resolved":"/private/var/folders/mw/r4366z0x3xnb_l0521bcwfj40000gn/T/29756a9772221a192f46553788d94914/consolelabs-mochi-mock-0.0.7.tgz","_from":"file:consolelabs-mochi-mock-0.0.7.tgz","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-L0b41HIp37IYzeHn79Zee7WkL1D8PZh+eWOwgW2uIwdBDD3KmmXAyfoo5nof1QUl5AmjAbD5AHHW+JlYq6D0ag==","shasum":"d2b4359b824a61bced737b5665b020196af82aeb","tarball":"https://registry.npmjs.org/@consolelabs/mochi-mock/-/mochi-mock-0.0.7.tgz","fileCount":20,"unpackedSize":62812,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHGF1cWBoO7DaahypvBP7VzGLHbWSQQlzBn3B86aBc37AiEA0OkZMUzUfE9glmOYcLespyIXX3soSxZxXk1DVfPhpnE="}]},"_npmUser":{"name":"daotuan","email":"heryhudson@gmail.com"},"directories":{},"maintainers":[{"name":"daotuan","email":"heryhudson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mochi-mock_0.0.7_1693208115284_0.08214142365609312"},"_hasShrinkwrap":false},"0.1.0":{"name":"@consolelabs/mochi-mock","version":"0.1.0","description":"<p align=\"center\">   <img src=\"https://github.com/consolelabs/mochi.js/assets/25856620/86864905-d19b-4992-abe9-43111670e0b2\" alt=\"mochi pose 04\" width=\"40%\" /> </p>","main":"dist/index.js","module":"dist/index.mjs","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"bin":{"mochi-mock":"dist/cli/index.js"},"keywords":[],"author":{"name":"tuanddd"},"license":"ISC","devDependencies":{"@types/listr":"^0.14.4","@types/prompts":"^2.4.4","@types/recursive-readdir":"^2.2.1","rimraf":"^5.0.1","tsup":"^7.2.0","typescript":"^5.1.6"},"peerDependencies":{"wretch":"^2.x.x"},"dependencies":{"@faker-js/faker":"^8.0.2","listr":"^0.14.3","meow":"^9.0.0","minimatch":"^9.0.3","pino":"^8.15.0","pino-pretty":"^10.2.0","prompts":"^2.4.2","recursive-readdir":"^2.2.3"},"scripts":{"clean":"rimraf dist","build":"pnpm clean && tsup --entry src/index.ts --entry src/cli/index.ts --format cjs,esm --dts"},"types":"./dist/index.d.ts","_id":"@consolelabs/mochi-mock@0.1.0","_integrity":"sha512-4JkrudLsW/ty4C2ON3HeQvggiE2mGe+fJtCd/PZkfMNoOxO4fY7lMwwfrntaiPaZo5tGtuHreTCm/0fQcl+yoA==","_resolved":"/private/var/folders/mw/r4366z0x3xnb_l0521bcwfj40000gn/T/7820558a7d23497b90d0eeef168e079e/consolelabs-mochi-mock-0.1.0.tgz","_from":"file:consolelabs-mochi-mock-0.1.0.tgz","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-4JkrudLsW/ty4C2ON3HeQvggiE2mGe+fJtCd/PZkfMNoOxO4fY7lMwwfrntaiPaZo5tGtuHreTCm/0fQcl+yoA==","shasum":"8196b97d5bb814493b0bec89faaf8366644b5eb2","tarball":"https://registry.npmjs.org/@consolelabs/mochi-mock/-/mochi-mock-0.1.0.tgz","fileCount":20,"unpackedSize":63353,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCONch0o2NxdsbiF7eM5m3szJZWSLjG0hIyHUwgf82J/QIgGyb0KuVx/h3Blrj3gbO+5vI96tgZqLbAnboK9ET8g4c="}]},"_npmUser":{"name":"daotuan","email":"heryhudson@gmail.com"},"directories":{},"maintainers":[{"name":"daotuan","email":"heryhudson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mochi-mock_0.1.0_1693296948894_0.06752535504291357"},"_hasShrinkwrap":false},"0.1.1":{"name":"@consolelabs/mochi-mock","version":"0.1.1","description":"<p align=\"center\">   <img src=\"https://github.com/consolelabs/mochi.js/assets/25856620/86864905-d19b-4992-abe9-43111670e0b2\" alt=\"mochi pose 04\" width=\"40%\" /> </p>","main":"dist/index.js","module":"dist/index.mjs","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"bin":{"mochi-mock":"dist/cli/index.js"},"keywords":[],"author":{"name":"tuanddd"},"license":"ISC","devDependencies":{"@types/listr":"^0.14.4","@types/prompts":"^2.4.4","@types/recursive-readdir":"^2.2.1","rimraf":"^5.0.1","tsup":"^7.2.0","typescript":"^5.1.6"},"peerDependencies":{"wretch":"^2.x.x"},"dependencies":{"@faker-js/faker":"^8.0.2","listr":"^0.14.3","meow":"^9.0.0","minimatch":"^9.0.3","prompts":"^2.4.2","recursive-readdir":"^2.2.3"},"scripts":{"clean":"rimraf dist","build":"pnpm clean && tsup --entry src/index.ts --entry src/cli/index.ts --format cjs,esm --dts"},"types":"./dist/index.d.ts","_id":"@consolelabs/mochi-mock@0.1.1","_integrity":"sha512-XvTScELAj56/GNaIu1r/endulFAYdjWj5rWdm0l+aFwkx2K+gFJMo1OJAfueOleub14y2Cxujz4bMEqB0KHtTA==","_resolved":"/private/var/folders/mw/r4366z0x3xnb_l0521bcwfj40000gn/T/2c84d9ccd2341190c99e8658a11f8722/consolelabs-mochi-mock-0.1.1.tgz","_from":"file:consolelabs-mochi-mock-0.1.1.tgz","_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-XvTScELAj56/GNaIu1r/endulFAYdjWj5rWdm0l+aFwkx2K+gFJMo1OJAfueOleub14y2Cxujz4bMEqB0KHtTA==","shasum":"ee7a4ecbb525aff5395d566ffa54da2e1e41430f","tarball":"https://registry.npmjs.org/@consolelabs/mochi-mock/-/mochi-mock-0.1.1.tgz","fileCount":19,"unpackedSize":61433,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkBkXaiGlq0aD8/Xeks12Ad9wy+VNxSxGMKbnsHP7lzwIgTG2i4wWXRgqgpNG1lsYPzWMMVfD5GFq0IxFZLAiEgEw="}]},"_npmUser":{"name":"daotuan","email":"heryhudson@gmail.com"},"directories":{},"maintainers":[{"name":"daotuan","email":"heryhudson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mochi-mock_0.1.1_1703566939597_0.5863789609383836"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-24T07:00:36.056Z","0.0.1":"2023-08-24T07:00:36.389Z","modified":"2023-12-26T05:02:19.987Z","0.0.2":"2023-08-24T07:56:09.138Z","0.0.3":"2023-08-27T17:14:21.567Z","0.0.4":"2023-08-28T02:26:19.713Z","0.0.5":"2023-08-28T03:04:04.194Z","0.0.6":"2023-08-28T03:20:12.419Z","0.0.7":"2023-08-28T07:35:15.502Z","0.1.0":"2023-08-29T08:15:49.110Z","0.1.1":"2023-12-26T05:02:19.791Z"},"maintainers":[{"name":"daotuan","email":"heryhudson@gmail.com"}],"description":"<p align=\"center\">   <img src=\"https://github.com/consolelabs/mochi.js/assets/25856620/86864905-d19b-4992-abe9-43111670e0b2\" alt=\"mochi pose 04\" width=\"40%\" /> </p>","keywords":[],"author":{"name":"tuanddd"},"license":"ISC","readme":"<p align=\"center\">\n  <img src=\"https://github.com/consolelabs/mochi.js/assets/25856620/86864905-d19b-4992-abe9-43111670e0b2\" alt=\"mochi pose 04\" width=\"40%\" />\n</p>\n\n# Mochi Mock <img src=\"https://badgen.net/npm/v/@consolelabs/mochi-mock?cache=300\" alt=\"npm latest version\" />\n\nThis package is used to mock json file normally returned by backend apis\n\n## 🌈 Installation\n\n```bash\n// npm\nnpm i @consolelabs/mochi-mock\n\n// yarn\nyarn add @consolelabs/mochi-mock\n\n// pnpm\npnpm add @consolelabs/mochi-mock\n```\n\n## 🚀 Usage\n\n### 1. Sync data\n\nFirst, sync the mock data to your local project, this should clone/overwrite the remote data mock repo\n\n```bash\n// npm or yarn\nnpx mochi-mock -i\n\n// pnpm\npnpm exec mochi-mock -i\n```\n\n### 2. Spy request\n\n```javascript\nimport spyRequest from \"@consolelabs/mochi-mock\";\n// or\nconst spyRequest = require(\"@consolelabs/mochi-mock\");\n\n// ensure that mocker only runs in development\nif (process.env.NODE_ENV === \"development\") {\n  spyRequest();\n}\n```\n\n### 3. Mock response\n\n#### Method 1 (recommended, requires [wretch](https://github.com/elbywan/wretch) package)\n\nRegister a new addon for your wretch instance\n\n```javascript\nimport { MockAddon } from \"@consolelabs/mochi-mock\";\nimport wretch from \"@consolelabs\";\n\nconst api = wretch().addon(MockAddon);\n\n// somewhere else in your business logic\nconst data = api\n  .mock(\"path/to/json/mock/file\", { query: \"optional\" })\n  .get()\n  .json();\n```\n\n#### Method 2\n\nThe other way is to attach a custom header called `X-Mochi-Mock` with the json file as the header's value (this is also how the mocker works under the hood)\n\n## ❓ FAQ\n\n### Do I need to follow some kind of format in my mock json file?\n\nNo, just use regular objects/list at the root, the response returned by the mocker will be converted to a format that is the same from a real api\n\n### Does the mocker support query string?\n\nYes, and there are also some reserved keys like `page` and `size` that are used for pagination. Anyother key/value pair is treated as filtering value, for example, this file:\n\n```json\n[\n  {\n    \"id\": 1,\n    \"name\": \"john\"\n  },\n  {\n    \"id\": 2,\n    \"name\": \"ben\"\n  }\n]\n```\n\nmocking this file with query string `?name=john` will only return list with 1 element\n\n## 🤝 Contributing\n\nIf you happen to change the mock data, kindly submit a PR with the changes so the team can review it\n","readmeFilename":"README.md"}