Negotiable Paleobotanist Missions

    resolve-env

    1.0.0 • Public • Published

    resolveEnv

    Quickly resolve strings with environmental variables. That is, turn 'Hello $USER!' into Hello linus!.

    Installation

    npm install --save resolve-env

    Usage

    var resolveEnv = require('resolve-env');
     
    // Displaying current user
    resolveEnv('Node is running as user: $USER');
     
    // Get url to linked docker container
    resolveEnv('mongodb://$DB_PORT_27017_TCP_ADDR:$DB_PORT_27017_TCP_PORT');
     
    // Interpolate variable
    resolveEnv('The kingdom of ${USER}topia!');

    License

    MIT

    Keywords

    none

    Install

    npm i resolve-env

    DownloadsWeekly Downloads

    69

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • linusu