home-or-tmp

WebJar for home-or-tmp

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

home-or-tmp
Last Version

Last Version

3.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

home-or-tmp
WebJar for home-or-tmp
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/home-or-tmp

Download home-or-tmp

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/home-or-tmp/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>home-or-tmp</artifactId>
    <version>3.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/home-or-tmp/
implementation 'org.webjars.npm:home-or-tmp:3.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/home-or-tmp/
implementation ("org.webjars.npm:home-or-tmp:3.0.0")
'org.webjars.npm:home-or-tmp:jar:3.0.0'
<dependency org="org.webjars.npm" name="home-or-tmp" rev="3.0.0">
  <artifact name="home-or-tmp" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='home-or-tmp', version='3.0.0')
)
libraryDependencies += "org.webjars.npm" % "home-or-tmp" % "3.0.0"
[org.webjars.npm/home-or-tmp "3.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

home-or-tmp Build Status

Get the user home directory with fallback to the system temp directory

Useful in cases where the home directory either isn't set or doesn't exist.

Install

$ npm install home-or-tmp

Usage

const homeOrTmp = require('home-or-tmp');

console.log(homeOrTmp);
//=> '/Users/sindresorhus'

// And if there is no home directory:

console.log(homeOrTmp);
//=> '/var/folders/m3/5574nnhn0yj488ccryqr7tc80000gn/T'

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Versions

Version
3.0.0
2.0.0
1.0.0