0.5.2 • Published 3 years ago

@velocejs/config v0.5.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

@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

0.5.2

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago