1.0.5 • Published 6 years ago

read-bsconfig v1.0.5

Weekly downloads
30
License
MIT
Repository
github
Last release
6 years ago

read-bsconfig

Library for reading the bsconfig.json for BuckleScript

Usage

const { readBsConfig, readBsConfigSync } = require('read-bsconfig')

// Read from the CWD
const myConf = readBsConfig()

// If the bsconfig is located somewhere else, pass it in as an arg
const otherConf = readBsConfig(__dirname)

// A bsconfig for a given path will be cached. This can be turned off
// by passing a second parameter as false
const notCachedConf = readBsConfig(__dirname, false)

// You can also read a config sync
// It has a the same arguments
const mySyncConf = readBsConfigSync()