0.0.6 • Published 5 years ago

typescriptsettings v0.0.6

Weekly downloads
3
License
GPL-3.0-or-later
Repository
github
Last release
5 years ago

TypescriptSettings npm version GPL Licence

TypescriptSettings is a super simple library with no dependencies for reading json files to use in a library that will be published to npm or the like. Written in typescript for easy use and tested with mocha for confidence.

Getting Started

To include in your project, simply npm install

npm install typescriptSettings

then all the user needs to do in their project using your library is create a file called settings.json

{
    "libraryName" : {
        "settingField" : "settingValue"
    }
}

Code Example

The tests that need to be written and included will be something like:

import Settings from "typescriptSettings";

console.log(`Setting: ${Settings.getSettings().libraryName.settingField}`);

Contribution Guide

Just fork and open a pull request and we will go from there. If there are a lot of requests I will make a more robust contributing guide.

Authors

License

This project is licensed under the GNU GPLv3 License - see gnu's site for details

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago