├── .env ├── .github ├── FUNDING.yml └── workflows │ └── build.yml ├── .gitignore ├── .husky ├── .gitignore └── pre-commit ├── .npmignore ├── LICENSE ├── README.md ├── bin └── fetchbook.js ├── cli.ts ├── examples ├── pokeapi │ ├── blastoise.fetch.ts │ ├── charizard.fetch.ts │ └── venusaur.fetch.ts └── zelda-fan-api │ ├── a-link-to-the-past.fetch.ts │ └── ocarina-of-time.fetch.ts ├── index.d.ts ├── index.js ├── lib ├── find-stories.ts ├── get-curl.ts ├── group-stories.ts ├── project.ts ├── read-body.ts ├── run-stories.ts ├── select-story.ts ├── serialize.ts ├── test-server.ts └── visit.ts ├── package.json ├── test ├── __snapshots__ │ └── fetchbook.test.ts.snap ├── fail │ └── get-posts.fetch.ts ├── fetchbook.test.ts └── pass │ ├── add-and-get-multiple-posts.fetch.ts │ ├── add-post.fetch.ts │ ├── get-missing-post.fetch.ts │ ├── get-post.fetch.ts │ └── get-posts.fetch.ts └── tsconfig.json /.env: -------------------------------------------------------------------------------- 1 | FETCHBOOK_TEST=true -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: 4lejandrito 2 | custom: ["https://buymeacoffee.com/b4iusc3"] 3 | -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx lint-staged 5 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | .env -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/README.md -------------------------------------------------------------------------------- /bin/fetchbook.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/bin/fetchbook.js -------------------------------------------------------------------------------- /cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/cli.ts -------------------------------------------------------------------------------- /examples/pokeapi/blastoise.fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/examples/pokeapi/blastoise.fetch.ts -------------------------------------------------------------------------------- /examples/pokeapi/charizard.fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/examples/pokeapi/charizard.fetch.ts -------------------------------------------------------------------------------- /examples/pokeapi/venusaur.fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/examples/pokeapi/venusaur.fetch.ts -------------------------------------------------------------------------------- /examples/zelda-fan-api/a-link-to-the-past.fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/examples/zelda-fan-api/a-link-to-the-past.fetch.ts -------------------------------------------------------------------------------- /examples/zelda-fan-api/ocarina-of-time.fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/examples/zelda-fan-api/ocarina-of-time.fetch.ts -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/index.d.ts -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /lib/find-stories.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/lib/find-stories.ts -------------------------------------------------------------------------------- /lib/get-curl.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/lib/get-curl.ts -------------------------------------------------------------------------------- /lib/group-stories.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/lib/group-stories.ts -------------------------------------------------------------------------------- /lib/project.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/lib/project.ts -------------------------------------------------------------------------------- /lib/read-body.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/lib/read-body.ts -------------------------------------------------------------------------------- /lib/run-stories.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/lib/run-stories.ts -------------------------------------------------------------------------------- /lib/select-story.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/lib/select-story.ts -------------------------------------------------------------------------------- /lib/serialize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/lib/serialize.ts -------------------------------------------------------------------------------- /lib/test-server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/lib/test-server.ts -------------------------------------------------------------------------------- /lib/visit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/lib/visit.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/package.json -------------------------------------------------------------------------------- /test/__snapshots__/fetchbook.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/test/__snapshots__/fetchbook.test.ts.snap -------------------------------------------------------------------------------- /test/fail/get-posts.fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/test/fail/get-posts.fetch.ts -------------------------------------------------------------------------------- /test/fetchbook.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/test/fetchbook.test.ts -------------------------------------------------------------------------------- /test/pass/add-and-get-multiple-posts.fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/test/pass/add-and-get-multiple-posts.fetch.ts -------------------------------------------------------------------------------- /test/pass/add-post.fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/test/pass/add-post.fetch.ts -------------------------------------------------------------------------------- /test/pass/get-missing-post.fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/test/pass/get-missing-post.fetch.ts -------------------------------------------------------------------------------- /test/pass/get-post.fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/test/pass/get-post.fetch.ts -------------------------------------------------------------------------------- /test/pass/get-posts.fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/test/pass/get-posts.fetch.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4lejandrito/fetchbook/HEAD/tsconfig.json --------------------------------------------------------------------------------