https://github.com/vladimyr/shell-profile
Node library for retrieving default shell profile path
https://github.com/vladimyr/shell-profile
nodejs shell shell-profile
Last synced: 2 months ago
JSON representation
Node library for retrieving default shell profile path
- Host: GitHub
- URL: https://github.com/vladimyr/shell-profile
- Owner: vladimyr
- License: mit
- Created: 2019-01-05T23:57:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-11T22:12:16.000Z (over 7 years ago)
- Last Synced: 2025-11-27T12:44:23.763Z (7 months ago)
- Topics: nodejs, shell, shell-profile
- Language: JavaScript
- Homepage:
- Size: 310 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shell-profile [](https://travis-ci.com/vladimyr/shell-profile) [](https://packagephobia.now.sh/result?p=shell-profile) [](https://npm.im/shell-profile) [](https://github.com/vladimyr/shell-profile/blob/master/LICENSE) [](https://github.com/Flet/semistandard)
> get default shell profile path
# Usage
```js
const shellProfile = require('shell-profile');
console.log('profile: %s', shellProfile());
//=> profile: /Users/vladimyr/.zshrc
```
# API
### Table of Contents
- [getProfilePath](#getprofilepath)
- [Examples](#examples)
## getProfilePath
Synchronously gets default shell profile path
### Examples
```javascript
const profile = require('shell-profile')();
console.log('profile: %s', profile);
//=> profile: /Users/vladimyr/.zshrc
```
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?>** profile path