opticon
v1.0.0
Published
Zero dependency option(s) container.
Downloads
7
Maintainers
Readme
Opticon 🐦
Zero dependency option container library.
Table of Contents
Installation
npm install opticon --save
Important NOTE
The README.md
file is under construction ☂ at the moment.
So please stay patient or contribute to it, till it covers all parts ⭐.
Usage
import { Opticon } from "opticon";
type Options = {
foo: string,
bar: number
}
const config = new Opticon<Options>({
defaults: {
foo: 'baz'
}
});
console.log(config.get('foo'));
// baz
console.log(config.get('bar'));
// undefined
License
Made with 💚
Published under MIT License.