osenv

WebJar for osenv

Лицензия

Лицензия

ISC
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

osenv
Последняя версия

Последняя версия

0.1.5
Дата

Дата

Тип

Тип

jar
Описание

Описание

osenv
WebJar for osenv
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/npm/osenv

Скачать osenv

Имя Файла Размер
osenv-0.1.5.pom
osenv-0.1.5.jar 7 KB
osenv-0.1.5-sources.jar 22 bytes
Обзор

Как подключить последнюю версию

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

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.npm : os-homedir jar [1.0.0,2)
org.webjars.npm : os-tmpdir jar [1.0.0,2)

Модули Проекта

Данный проект не имеет модулей.

osenv

Look up environment settings specific to different operating systems.

Usage

var osenv = require('osenv')
var path = osenv.path()
var user = osenv.user()
// etc.

// Some things are not reliably in the env, and have a fallback command:
var h = osenv.hostname(function (er, hostname) {
  h = hostname
})
// This will still cause it to be memoized, so calling osenv.hostname()
// is now an immediate operation.

// You can always send a cb, which will get called in the nextTick
// if it's been memoized, or wait for the fallback data if it wasn't
// found in the environment.
osenv.hostname(function (er, hostname) {
  if (er) console.error('error looking up hostname')
  else console.log('this machine calls itself %s', hostname)
})

osenv.hostname()

The machine name. Calls hostname if not found.

osenv.user()

The currently logged-in user. Calls whoami if not found.

osenv.prompt()

Either PS1 on unix, or PROMPT on Windows.

osenv.tmpdir()

The place where temporary files should be created.

osenv.home()

No place like it.

osenv.path()

An array of the places that the operating system will search for executables.

osenv.editor()

Return the executable name of the editor program. This uses the EDITOR and VISUAL environment variables, and falls back to vi on Unix, or notepad.exe on Windows.

osenv.shell()

The SHELL on Unix, which Windows calls the ComSpec. Defaults to 'bash' or 'cmd'.

org.webjars.npm

npm

node package manager

Версии библиотеки

Версия
0.1.5
0.1.4
0.1.3
0.1.0