os-homedir

WebJar for os-homedir

License

License

MIT
GroupId

GroupId

org.webjars.bowergithub.sindresorhus
ArtifactId

ArtifactId

os-homedir
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

os-homedir
WebJar for os-homedir
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/os-homedir

Download os-homedir

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.sindresorhus/os-homedir/ -->
<dependency>
    <groupId>org.webjars.bowergithub.sindresorhus</groupId>
    <artifactId>os-homedir</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.sindresorhus/os-homedir/
implementation 'org.webjars.bowergithub.sindresorhus:os-homedir:1.0.2'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.sindresorhus/os-homedir/
implementation ("org.webjars.bowergithub.sindresorhus:os-homedir:1.0.2")
'org.webjars.bowergithub.sindresorhus:os-homedir:jar:1.0.2'
<dependency org="org.webjars.bowergithub.sindresorhus" name="os-homedir" rev="1.0.2">
  <artifact name="os-homedir" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.sindresorhus', module='os-homedir', version='1.0.2')
)
libraryDependencies += "org.webjars.bowergithub.sindresorhus" % "os-homedir" % "1.0.2"
[org.webjars.bowergithub.sindresorhus/os-homedir "1.0.2"]

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.

Deprecated

This is not needed anymore. Use require('os').homedir() instead.


os-homedir Build Status

Node.js 4 os.homedir() ponyfill

Install

$ npm install --save os-homedir

Usage

const osHomedir = require('os-homedir');

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

Related

  • user-home - Same as this module but caches the result
  • home-or-tmp - Get the user home directory with fallback to the system temp directory

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
1.0.2