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

0.5.2 • Public • Published

@velocejs/config

Reading the project configuration files in various format and provide to different modules.

veloce.config.js

This is the default file name; we also support veloce.config.cjs (Must be in commonJs format)

For example:

// cjs style
module.exports = {
  contract: {
    cacheDir: '/path/to/cacheDir'
  }
}

This module is aim to use internally with our Veloce platform, not for general use.

Use it

import { VeloceConfig } from '@jsonql/config'
const c = new VeloceConfig()
const contractConfig = c.getConfig('contract')
// alos support dot notation path style
const cacheDir = c.getConfig('contract.cacheDir')

@TODO add the full matching of all Veloce Config options then add the @jsonql/config-check module


Joel Chu (c) 2022

Readme

Keywords

none

Package Sidebar

Install

npm i @velocejs/config

Homepage

velocejs.com

Weekly Downloads

3

Version

0.5.2

License

ISC

Unpacked Size

23.5 kB

Total Files

11

Last publish

Collaborators

  • joelchu
  • to1source-me