Cypress_TS/CyLukTs/lukan/node_modules/ospath
Lukáš Kaňka ea3e372146 údržba
2023-08-15 18:35:50 +02:00
..
.npmignore údržba 2023-08-15 18:35:50 +02:00
changelog.md údržba 2023-08-15 18:35:50 +02:00
index.js údržba 2023-08-15 18:35:50 +02:00
package.json údržba 2023-08-15 18:35:50 +02:00
readme.md údržba 2023-08-15 18:35:50 +02:00

ospath

npm Package build status

A JavaScript component that provides operating specific path values.

Installation

npm i --save ospath

API

ospath.data()

Returns the directory where an application should store its data directory.

  • Windows: %APPDATA%
  • OS X: ~/Library/Application Support
  • Unix-like: $XDG_CONFIG_HOME or ~/.config

ospath.desktop()

Returns the users desktop directory. On every OS, this is just the home() dir and Desktop.

ospath.home()

Returns the user's home directory.

  • Windows: %USERPROFILE%
  • Unix-like: $HOME

ospath.tmp()

Returns a temporary directory. Could also use require('os').tmpdir().

  • Windows: %TEMP%
  • Unix-like: /tmp

License

MIT