0.6.1 • Published 5 years ago

decomposable-config v0.6.1

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

Decomposable Config

This package provides a solution to allow a JSON based configuration to be decomposed into a filesystem structure or a single file JSON. The idea is that in certain cases it is makes sense to 'explode' the JSON file into something that is visible on the file system.

General conventions:

  • Top level folder is treated as the root object
  • Any sub files or folders are treated as keys in the parent object
  • A file myfile.json and a folder myfolder/index.json are treated as equivalent
  • If myfolder/index.json has a key mykey and myfolder contains a folder called mykey, then the latter will squash any entries defined for that key.

A few notes:

  • This is NOT designed to work in a browser. It needs file system access.
  • This package is targeted at JSON based configuration files for now.

Installing

To install this as a dependency to your project:

npm install decomposable-config

or via yarn:

yarn install decomposable-config

Issues, Features Requests and Such

If you discover a bug, have a feature request or other form of feedback, then please use the issue tracker on the Github project.

Before contributing any code, please open an issue, in the issue tracker.

License

Licensed under the MIT license. For details see the LICENSE.md file

0.6.1

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago