v4.0.0
4.0.0 (2017-10-06)
BREAKING CHANGE
- release: switch to named exports
- rename: the
.syncmethod togetInstalledPathSyncnamed 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')