Find the first directory with a package.json, recursing up, starting with the given directory. Similar to look-up but does not support globs and only searches for package.json. Async and sync.
Write a JSON file to disk, also creates intermediate directories in the destination path if they don't already exist.
- View more
Resolves a given package if it is installed locally, then tries to resolve it from global registry, using battle-tested [global-modules] package. Better approach than internal `require.resolve`, so you can trust. You just get absolute filepath to some p
Automatically re-write the destination extension of a filepath based on the source extension. e.g `.coffee` => `.js`. This will only rename the ext, no other path parts are modified.