"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/osenv/package.json" (11 Apr 2017, 2754 Bytes) of package /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) JSON source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {
    2   "_from": "osenv@>=0.1.3 <0.2.0",
    3   "_id": "osenv@0.1.3",
    4   "_location": "/osenv",
    5   "_phantomChildren": {},
    6   "_requiredBy": [
    7     "/node-gyp",
    8     "/npm"
    9   ],
   10   "_resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.3.tgz",
   11   "_shasum": "83cf05c6d6458fc4d5ac6362ea325d92f2754217",
   12   "_shrinkwrap": null,
   13   "author": {
   14     "name": "Isaac Z. Schlueter",
   15     "email": "i@izs.me",
   16     "url": "http://blog.izs.me/"
   17   },
   18   "bugs": {
   19     "url": "https://github.com/npm/osenv/issues"
   20   },
   21   "dependencies": {
   22     "os-homedir": "^1.0.0",
   23     "os-tmpdir": "^1.0.0"
   24   },
   25   "description": "Look up environment settings specific to different operating systems",
   26   "devDependencies": {
   27     "tap": "^1.2.0"
   28   },
   29   "directories": {
   30     "test": "test"
   31   },
   32   "homepage": "https://github.com/npm/osenv#readme",
   33   "keywords": [
   34     "environment",
   35     "variable",
   36     "home",
   37     "tmpdir",
   38     "path",
   39     "prompt",
   40     "ps1"
   41   ],
   42   "license": "ISC",
   43   "main": "osenv.js",
   44   "name": "osenv",
   45   "optionalDependencies": {},
   46   "readme": "# osenv\n\nLook up environment settings specific to different operating systems.\n\n## Usage\n\n```javascript\nvar osenv = require('osenv')\nvar path = osenv.path()\nvar user = osenv.user()\n// etc.\n\n// Some things are not reliably in the env, and have a fallback command:\nvar h = osenv.hostname(function (er, hostname) {\n  h = hostname\n})\n// This will still cause it to be memoized, so calling osenv.hostname()\n// is now an immediate operation.\n\n// You can always send a cb, which will get called in the nextTick\n// if it's been memoized, or wait for the fallback data if it wasn't\n// found in the environment.\nosenv.hostname(function (er, hostname) {\n  if (er) console.error('error looking up hostname')\n  else console.log('this machine calls itself %s', hostname)\n})\n```\n\n## osenv.hostname()\n\nThe machine name.  Calls `hostname` if not found.\n\n## osenv.user()\n\nThe currently logged-in user.  Calls `whoami` if not found.\n\n## osenv.prompt()\n\nEither PS1 on unix, or PROMPT on Windows.\n\n## osenv.tmpdir()\n\nThe place where temporary files should be created.\n\n## osenv.home()\n\nNo place like it.\n\n## osenv.path()\n\nAn array of the places that the operating system will search for\nexecutables.\n\n## osenv.editor() \n\nReturn the executable name of the editor program.  This uses the EDITOR\nand VISUAL environment variables, and falls back to `vi` on Unix, or\n`notepad.exe` on Windows.\n\n## osenv.shell()\n\nThe SHELL on Unix, which Windows calls the ComSpec.  Defaults to 'bash'\nor 'cmd'.\n",
   47   "readmeFilename": "README.md",
   48   "repository": {
   49     "type": "git",
   50     "url": "git+https://github.com/npm/osenv.git"
   51   },
   52   "scripts": {
   53     "test": "tap test/*.js"
   54   },
   55   "version": "0.1.3"
   56 }