Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hairyf/resolve-import-path


https://github.com/hairyf/resolve-import-path

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

## resolve-import-path

> Obtain the path of the software packages you have installed, including your own software packages

```ts
import { resolveImport } from 'resolve-import-path'

resolveImport('react') // ...node_modules/react/dist/index.js

resolveImport('react/package.json') // ...node_modules/react/package.json

resolveImport('your-package-name/package.json') // ...package.json
```

## Related

> TODO