Gathering detailed insights and metrics for homedir-polyfill
Gathering detailed insights and metrics for homedir-polyfill
Gathering detailed insights and metrics for homedir-polyfill
Gathering detailed insights and metrics for homedir-polyfill
npm install homedir-polyfill
Typescript
Module System
Min. Node Version
Node Version
NPM Version
97.9
Supply Chain
98.8
Quality
75.1
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
7 Stars
25 Commits
3 Forks
2 Watchers
1 Branches
3 Contributors
Updated on Jul 30, 2024
Latest Version
1.0.3
Package Id
homedir-polyfill@1.0.3
Size
3.26 kB
NPM Version
6.4.1
Node Version
10.14.2
Published on
Feb 21, 2019
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
2
Node.js os.homedir polyfill for older versions of node.js.
Please consider following this project's author, Brian Woodward, and consider starring the project to show your :heart: and support.
Install with npm:
1$ npm install --save homedir-polyfill
1var homedir = require('homedir-polyfill'); 2console.log(homedir()); 3//=> /Users/doowb
This library is a polyfill for the node.js os.homedir method found in modern versions of node.js.
This implementation tries to follow the implementation found in libuv
by finding the current user using the process.geteuid()
method and the /etc/passwd
file. This should usually work in a linux environment, but will also fallback to looking at user specific environment variables to build the user's home directory if neccessary.
Since /etc/passwd
is not available on windows platforms, this implementation will use environment variables to find the home directory.
In modern versions of node.js, os.homedir is used.
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Please read the contributing guide for advice on opening issues, pull requests, and coding standards.
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
1$ npm install && npm test
(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)
To generate the readme, run the following command:
1$ npm install -g verbose/verb#dev verb-generate-readme && verb
You might also be interested in these projects:
parse-passwd: Parse a passwd file into a list of users. | homepage
Commits | Contributor |
---|---|
19 | doowb |
2 | martinheidegger |
Brian Woodward
Copyright © 2016 - 2019, Brian Woodward. Released under the MIT License.
This file was generated by verb-generate-readme, v0.8.0, on February 21, 2019.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/23 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More