Skip to content

v4.0.0

Choose a tag to compare

@tunnckoCore tunnckoCore released this 06 Oct 04:03
· 155 commits to master since this release

4.0.0 (2017-10-06)

BREAKING CHANGE

  • release: switch to named exports
  • rename: the .sync method to getInstalledPathSync 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')