2.0.2 • Published 3 years ago

onmyjs v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

onmyjs

turn your js config file into json

onmyjs(data: object, outputFilename?: string, pretty = true): void

  • data: the data to write
  • outputPath?: the relative file path/name to write to (.json ending if empty)
  • pretty: whether to pretty-print or not

Sample Usage

const { onmyjs } = require('onmyjs');
module.exports = {
  compilerOptions: {
    ...
  }
}
onmyjs(module.exports, undefined, true); // export to samename.json
onmyjs(module.exports, '../config/stuff.json', true); // export to relative path
2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago