Skip to content

felixrieseberg/find-npm-windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

📦 Find npm on Windows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published