# ospath **Repository Path**: mirrors_jprichardson/ospath ## Basic Information - **Project Name**: ospath - **Description**: A JavaScript component that provides operating specific path values. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-03-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ospath ====== [![npm Package](https://img.shields.io/npm/v/ospath.svg?style=flat-square)](https://www.npmjs.org/package/ospath) [![build status](https://api.travis-ci.org/jprichardson/ospath.svg)](http://travis-ci.org/jprichardson/ospath) 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