load-oxfmt-config
v0.0.2
Published
Load .oxfmtrc.json(c) for oxfmt.
Maintainers
Readme
load-oxfmt-config
Load .oxfmtrc.json(c) for oxfmt.
Install
npm install load-oxfmt-configyarn add load-oxfmt-configpnpm add load-oxfmt-configUsage
import { loadOxfmtConfig } from 'load-oxfmt-config'
const config = await loadOxfmtConfig({
cwd: '/configs',
})
console.log({ config })Options
configPath
Type: string
Required: false
Default: undefined
Path to the oxfmt config file, resolved relative to cwd.
cwd
Type: string
Required: false
Default: process.cwd()
Current working directory used when searching for config files.
useCache
Type: boolean
Required: false
Default: true
Enable in-memory caching for path resolution and parsed config contents.
