npm-dir

    0.1.0 • Public • Published

    npm-dir NPM version Build Status Dependency Status

    Utility method to get global npm.dir.

    Usage

    var npm = require('npm-dir');
    
    console.log(npm.dir);       // '/usr/local/lib/node_modules' if on mac
    console.log(npm.prefix);    // '/usr/local/' if on mac by default
    

    Keywords

    none

    Install

    npm i npm-dir

    DownloadsWeekly Downloads

    3

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • avatar