Norvell's Public Machinations

    stackerjs-utils
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.3 • Public • Published

    Travis Codecov Maintainability Dependencies npm

    NPM

    StackerJS

    Utils

    Package of utilities that works nicely in and outside StackerJS

    Usage

    Config

    import { Config } from 'stackerjs-utils';
     
    Config.set('any.value', { name: 'stackerjs-utils' });
    Config.set('any.type', 'Hello');
     
    Config.get('any.value'); // { "name": "stackerjs" }
    Config.get('any.type'); // Hello

    .ENV file

    When a .env is configured in project root like this:

    DB_DRIVER=mysql
    APP_NAME=stackerjs-utils

    It can be accessed by Config as:

    import { Config } from 'stackerjs-utils';
     
    Config.get('db.driver'); // mysql
    Config.get('DB_DRIVER'); // mysql

    Install

    npm i stackerjs-utils

    DownloadsWeekly Downloads

    0

    Version

    1.1.3

    License

    none

    Unpacked Size

    13.1 MB

    Total Files

    21

    Last publish

    Collaborators

    • parpeoficial