{ "manifest": { "name": "getos", "version": "3.2.1", "description": "Get the OS/Distribution name of the environment you are working on", "main": "index.js", "scripts": { "test": "node tests/mocktests.js", "posttest": "standard", "integration": "node tests/runTest.js", "standard-fix": "standard --fix" }, "repository": { "type": "git", "url": "https://github.com/retrohacker/getos.git" }, "keywords": [ "OS", "Distribution", "Platform", "Version" ], "author": { "name": "william.jblankenship@gmail.com" }, "license": "MIT", "bugs": { "url": "https://github.com/retrohacker/getos/issues" }, "homepage": "https://github.com/retrohacker/getos", "devDependencies": { "cli-color": "^2.0.0", "execSync": "^1.0.2", "standard": "^14.3.1", "tape": "^4.13.2" }, "dependencies": { "async": "^3.2.0" }, "contributors": [ { "name": "Benjamin E. Coe", "email": "bencoe@gmail.com", "url": "https://github.com/bcoe" } ], "_registry": "npm", "_loc": "/home/josie/.cache/yarn/v6/npm-getos-3.2.1-integrity/node_modules/getos/package.json", "readmeFilename": "README.md", "readme": "# getos\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/retrohacker/getos.svg)](https://greenkeeper.io/)\n\n![getos](./imgs/logo.png)\n\n[![Build Status](https://travis-ci.org/retrohacker/getos.png?branch=master)](https://travis-ci.org/retrohacker/getos) ![](https://img.shields.io/github/issues/retrohacker/getos.svg) ![](https://img.shields.io/npm/dm/getos.svg) ![](https://img.shields.io/npm/v/getos.svg) ![](https://img.shields.io/npm/l/getos.svg) ![](https://img.shields.io/twitter/url/https/github.com/retrohacker/getos.svg?style=social)\n\n[![NPM](https://nodei.co/npm/getos.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/getos/)[![NPM](https://nodei.co/npm-dl/getos.png?months=9&height=3)](https://nodei.co/npm/getos/)\n\n[![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n\nGet the OS/Distribution name of the environment you are working on\n\n## Problem\n\n`os.platform()` returns `linux`. If you want the distrubtion name, you're out of luck.\n\n## Solution\n\nThis. Simply call:\n\n```js\nvar getos = require('getos')\n\ngetos(function(e,os) {\n if(e) return console.log(e)\n console.log(\"Your OS is:\" +JSON.stringify(os))\n})\n```\n\nThe `os` object conforms to:\n\n```js\n{\n os: [OS NAME],\n dist:[DIST NAME],\n codename:[CODENAME],\n release:[VERSION]\n}\n```\n\nFor example:\n\n```js\n{\n os: \"linux\",\n dist: \"Ubuntu\",\n codename: \"precise\",\n release: \"12.04\"\n}\n```\n\n## Disclaimer\nCheck `os.json` in this repo. Any distribution that *shares* a common resource file with another distrubtion is currently untested. These are the arrays of distrubitons with more than 1 member. If you are using one of these distrubtions, please submit an issue letting me know if it works. If it fails, please post the content of the file.\n\nIf you have a distrubtion *not* in `os.json`, please identify your resource file and submit it's name and content along with your distrbution/version in an issue.\n\nThanks for helping make this tool great.\n\n## Unit Tests\n\nUnit tests stub out the behaviour of the OS files and libraries we depend on to ensure the behaviour of the application is sound. You can run these simply by running `npm test`\n\n## Authors and Contributors\n\ngetos has been made possible by these fantastic contributors:\n\n\n\n\n\n\n\n\n\n\n
Benjamin E. CoeGitHub/bcoeTwitter/@benjamincoe
Eugene SharyginGitHub/eush77Twitter/@eush77
David RouthieauGitHub/root-iounknown
LawrenceGitHub/mindmeltingTwitter/@mindmelting
Roman JurkovGitHub/winfinitTwitter/@winfinit
Rod VaggGitHub/rvaggTwitter/@rvagg
Zeke SikelianosGitHub/zekeTwitter/@zeke
AlexanderGitHub/alex4ZeroTwitter/@alex4Zero
\n", "licenseText": "The MIT License (MIT)\n\nCopyright (c) 2016 William Blankenship\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n" }, "artifacts": [], "remote": { "resolved": "https://registry.npmjs.org/getos/-/getos-3.2.1.tgz", "type": "tarball", "reference": "https://registry.npmjs.org/getos/-/getos-3.2.1.tgz", "hash": "", "integrity": "sha512-U56CfOK17OKgTVqozZjUKNdkfEv6jk5WISBJ8SHoagjE6L69zOwl3Z+O8myjY9MEW3i2HPWQBt/LTbCgcC973Q==", "registry": "npm", "packageName": "getos", "cacheIntegrity": "sha512-U56CfOK17OKgTVqozZjUKNdkfEv6jk5WISBJ8SHoagjE6L69zOwl3Z+O8myjY9MEW3i2HPWQBt/LTbCgcC973Q== sha1-ATTR9OAOtGFExanArE3Ah8uyfcU=" }, "registry": "npm", "hash": "539e827ce2b5ece2a04d5aa8cd98d428d7647c4bfa8e4e56212049f121e86a08c4e8bebdccec25dd9f8ef26ca363d3045b78b61cf59006dfcb4db0a0702f7bdd" }