{"name":"osenv","version":"0.1.2","keywords":["environment","variable","home","tmpdir","path","prompt","ps1"],"author":{"url":"http://blog.izs.me/","name":"Isaac Z. Schlueter","email":"i@izs.me"},"license":"ISC","_id":"osenv@0.1.2","maintainers":[{"name":"isaacs","email":"i@izs.me"},{"name":"robertkowalski","email":"rok@kowalski.gd"},{"name":"othiym23","email":"ogd@aoaioxxysz.net"},{"name":"iarna","email":"me@re-becca.org"}],"homepage":"https://github.com/npm/osenv#readme","bugs":{"url":"https://github.com/npm/osenv/issues"},"dist":{"shasum":"f4d23ebeceaef078600fb78c0ea58fac5996a02d","tarball":"http://registry-npm.ywwl.com/osenv/download/osenv-0.1.2.tgz","integrity":"sha512-DsV89q/jn7lRUvAu9iPudIWsJ+xd6iJuZs0/tDFIAefx2YqDFKUa+wMkQPCBqfSTPfJ4didixDyA+/AkpnzLFw==","signatures":[{"sig":"MEUCICklQyiOyelgYgEs+pW4T/f9yLmrIoJBcyg3pfb36Tr1AiEAkrq1l8YIbiYo+7Ardihu9KlvGsmG874hBN2szt01rK8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":3351,"noattachment":false,"key":"/osenv/-/osenv-0.1.2.tgz"},"main":"osenv.js","_from":".","_shasum":"f4d23ebeceaef078600fb78c0ea58fac5996a02d","gitHead":"88a154d6d8ad39fefb9af2fe1b306cd12fb6d6d0","scripts":{"test":"tap test/*.js"},"_npmUser":{"name":"iarna","email":"me@re-becca.org"},"deprecated":"This package is no longer supported.","repository":{"url":"git+https://github.com/npm/osenv.git","type":"git"},"_npmVersion":"3.0.0-pre.11","description":"Look up environment settings specific to different operating systems","directories":{"test":"test"},"_nodeVersion":"2.2.1","dependencies":{"os-tmpdir":"^1.0.0"},"devDependencies":{"tap":"^1.2.0"},"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","publish_time":1434073447722,"_cnpm_publish_time":1434073447722,"dist-tags":{"latest":"0.1.5"}}