npm.io
0.1.0 • Published 4 years ago

quickfig

Licence
MIT
Version
0.1.0
Deps
4
Size
39 kB
Vulns
1
Weekly
0

quickfig

configuration format normalizer

parse n config types in a single library/application

supported formats

js, json, yaml, toml, xml

optional arguments

  • allowedTypes list of valid types to parse (from supported formats)
  • baseTag the tag to destructure from as your config base
  • pattern the glob pattern to match
  • cleanResponse defaults to true, and determines if it just returns the config content in the object or the path as well as a key. it will return a list of matching files, with their paths and content in a javascript object, or a single object if only one file is resolved.

examples