@schmock/schmock
v2.6.0
Published
All-in-one Schmock package — installs core, faker, validation, query, openapi, and CLI
Maintainers
Readme
@schmock/schmock
All-in-one Schmock install: pulls in core, faker, validation, query, openapi, and the CLI.
Part of Schmock — mock APIs from OpenAPI specs or hand-crafted routes.
Install
bun add -d @schmock/schmockThis package re-exports only schmock and the response helpers from @schmock/core.
The other packages arrive as its dependencies, which a strict layout (pnpm, Yarn PnP,
bun install --linker isolated) does not let your code import or run. List every
package you import, and @schmock/cli if you run the schmock command, as a direct
dependency:
bun add -d @schmock/schmock @schmock/openapiUsage
import { schmock } from "@schmock/schmock";
import { openapi } from "@schmock/openapi"; // installed directly, see above
const mock = schmock({ state: {} });
mock.pipe(await openapi({ spec: "./petstore.yaml" }));Documentation
License
MIT © Khalic Lab
