1.0.0 • Published 1 year ago

opticon v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Opticon 🐦

npm version main codecov Known Vulnerabilities semantic-release: angular

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.