Releases: tunnckoCore/get-installed-path
Releases · tunnckoCore/get-installed-path
v4.0.8
v4.0.7
v4.0.6
v4.0.5
v4.0.4
v4.0.3
v4.0.2
v4.0.1
v4.0.0
4.0.0 (2017-10-06)
BREAKING CHANGE
- release: switch to named exports
- rename: the
.sync
method togetInstalledPathSync
named export
Switch from default export to named exports, so there is no .sync
method.
So if you use ES Modules you should use this module like this
import { getInstalledPath, getInstalledPathSync } from 'get-installed-path'
or in CJS module system both of below variants should work
// recommended
const { getInstalledPath, getInstalledPathSync } = require('get-installed-path')
// or
const foo = require('get-installed-path')
// and use them
foo.getInstalledPath('npm')
foo.getInstalledPathSync('npm')