ospath
Advanced tools
Weekly downloads
Readme
A JavaScript component that provides operating specific path values.
npm i --save ospath
Returns the directory where an application should store its data directory.
%APPDATA%
~/Library/Application Support
$XDG_CONFIG_HOME
or ~/.config
Returns the users desktop directory. On every OS, this is just the home()
dir and Desktop
.
Returns the user's home directory.
%USERPROFILE%
$HOME
Returns a temporary directory. Could also use require('os').tmpdir()
.
%TEMP%
/tmp
MIT
FAQs
Operating system specific paths.
The npm package ospath receives a total of 3,930,686 weekly downloads. As such, ospath popularity was classified as popular.
We found that ospath demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.