Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hairyf/resolve-import-path
https://github.com/hairyf/resolve-import-path
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/hairyf/resolve-import-path
- Owner: hairyf
- Created: 2024-07-27T01:57:00.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-27T04:24:22.000Z (5 months ago)
- Last Synced: 2024-10-02T08:20:54.243Z (3 months ago)
- Language: TypeScript
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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