# tmpdir
> Return the directory for storing temporary files.
## Usage
```javascript
var tmpdir = require( '@stdlib/os/tmpdir' );
```
#### tmpdir()
Returns the directory for storing temporary files.
```javascript
var dir = tmpdir();
// e.g., returns '/path/to/temporary/files/directory'
```
## Examples
```javascript
var PATH_SEP = require( '@stdlib/constants/path/sep' );
var tmpdir = require( '@stdlib/os/tmpdir' );
var parts = tmpdir().split( PATH_SEP );
console.log( parts );
```
* * *
## CLI
### Usage
```text
Usage: tmpdir [options]
Options:
-h, --help Print this message.
-V, --version Print the package version.
```
### Examples
```bash
$ tmpdir
/path/to/temporary/files/directory
```