@chocolab/env
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.4-alpha.0 • Public • Published


    deps dev-deps chat Maintainability Codacy Badge License: GPL v3 npm version npm size npm downloads npm vulnerabilities


    @chocolab/env

    Load .env for monorepos.

    Install

    yarn add @chocolab/env

    Usage

    import { resetEnv } from '@chocolab/env'
     
    // Load env
    loadEnv()
     
    // Set 'PATH'
    env('PATH', './')
     
    // Get path
    env('PATH') // return './'
     
    // Get env
    env() // return { PATH: './' }
     
    // Reset env vars
    resetEnv()

    Maintainers


    jefer94

    Keywords

    none

    Install

    npm i @chocolab/env

    DownloadsWeekly Downloads

    6

    Version

    1.0.4-alpha.0

    License

    MIT

    Unpacked Size

    12.4 kB

    Total Files

    16

    Last publish

    Collaborators

    • avatar