@tractor/config-loader
TypeScript icon, indicating that this package has built-in type declarations

1.9.4-tractor-to-playwright.0 • Public • Published

@tractor/config-loader

A configuration loader utility for tractor.

npm version

API

loadConfig (cwd: string, configPath?: string): TractorConfig

Load a tractor configuration file from a given directory and path (defaults to ./tractor.conf.js), before falling back to the default configuration.

import { loadConfig } from '@tractor/config-loader';

const config = loadConfig(process.cwd(), './path/to/tractor.conf.js');

getConfig (): TractorConfig

Retrieves the current config for the running Tractor instance. loadConfig() must be called befere calling getConfig().

import { getConfig } from '@tractor/config-loader';

const config = getConfig();

Readme

Keywords

none

Package Sidebar

Install

npm i @tractor/config-loader

Weekly Downloads

1

Version

1.9.4-tractor-to-playwright.0

License

MIT

Unpacked Size

9.9 kB

Total Files

19

Last publish

Collaborators

  • phenomnomnominal
  • trbpro23
  • amy.rowell
  • mzollner
  • deemicksee
  • cgrant_tm
  • savage-tm