@vivid-front/commons
v1.5.2
Published
A Node.js library for creating fake APIs from file structure.
Maintainers
Readme
@vivid-front/commons
Shared utilities and types used across the @vivid-front toolchain.
What it is
- A small set of helpers for loading user configuration files and shared type definitions.
- Consumed by @vivid-front/fake-api, @vivid-front/http and @vivid-front/bundler.
Install
- npm: npm install @vivid-front/commons
- yarn: yarn add @vivid-front/commons
- pnpm: pnpm add @vivid-front/commons
Usage
- Load the user config resolved from the current working directory:
import { loadUserConfigFile, loadConfigFromFile } from '@vivid-front/commons';
const rawConfig = loadUserConfigFile();
const config = loadConfigFromFile();Node support
- Node >= 22.18.0
License MIT
