read-bsconfig

1.0.5 • Public • Published

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()

Readme

Keywords

none

Package Sidebar

Install

npm i read-bsconfig

Weekly Downloads

56

Version

1.0.5

License

MIT

Unpacked Size

4.6 kB

Total Files

4

Last publish

Collaborators

  • rrdelaney