https://github.com/clayrisser/proj-path
Get the project path of your NodeJS application
https://github.com/clayrisser/proj-path
nodejs pathfinding project root
Last synced: about 2 months ago
JSON representation
Get the project path of your NodeJS application
- Host: GitHub
- URL: https://github.com/clayrisser/proj-path
- Owner: clayrisser
- License: mit
- Created: 2017-06-21T05:52:17.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2023-07-13T09:59:03.000Z (almost 3 years ago)
- Last Synced: 2025-10-10T14:56:47.619Z (9 months ago)
- Topics: nodejs, pathfinding, project, root
- Language: JavaScript
- Size: 2.53 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# proj-path
Get the project path of your NodeJS application from anywhere

Please ★ this repo if you found it useful ★ ★ ★
## Features
* Works from any directory
## Installation
```sh
npm install --save proj-path
```
## Dependencies
* [NodeJS](https://nodejs.org/en/)
* [NPM](https://www.npmjs.com/)
## Usage
Let's assume your project is located at `/home/jamrizzi/Projects/my-project`
```js
import projPath from 'proj-path';
console.log(projPath());
// /home/jamrizzi/Projects/my-project
```
## Support
Submit an [issue](https://github.com/jamrizzi/proj-path/issues/new)
## Buy Me Coffee
A ridiculous amount of coffee was consumed in the process of building this project.
[Add some fuel](https://pay.jamrizzi.com) if you'd like to keep me going!
## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -m 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
## License
[MIT License](https://github.com/jamrizzi/proj-path/blob/master/LICENSE)
[Jam Risser](https://jamrizzi.com) © 2017
## Credits
* [Jam Risser](https://jamrizzi.com) - Author
## Changelog
0.0.1 (2017-06-21)
* Initial release