find-npm-windows

1.0.0 • Public • Published

Find npm on Windows

This little script finds npm on Windows. It was initially built for npm-windows-upgrade and then broken out so that people could use it to find npm, too. It has no production dependencies.

Usage

const findNpm = require('find-npm')

// Promise
findNpm().then(result => {
    const npmFoundIn = result.path
    const strategyUsed = result.from
    const explaination = result.message
})

// With async/await
const npmPaths = await findNpm()

const npmFoundIn = npmPaths.path
const strategyUsed = npmPaths.from
const explaination = npmPaths.message

License

MIT, please see LICENSE for details. Copyright (c) 2015 Felix Rieseberg.

Readme

Keywords

Package Sidebar

Install

npm i find-npm-windows

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • felixrieseberg