{"maintainers":[{"name":"h2non","email":"tomas@aparicio.me"}],"keywords":["os","tmpdir","endianness","shim"],"dist-tags":{"latest":"0.1.3"},"description":"Native OS module API shim for older node.js versions","readme":"# Node OS shim [![Build Status](https://secure.travis-ci.org/AdesisNetlife/node-os-shim.png?branch=master)][travis] [![NPM version](https://badge.fury.io/js/os-shim.png)][badge]\n\n> Native OS module API shim for older node.js versions\n\n## About\n\nNode.js team froze the [OS module API][1] in 0.10.x version, however the API differs a bit in lower node.js versions\n\nThis shim just provides the missing OS module API that is available on latest node.js versions.\nYou can now use the `os` package in old node.js versions without fear.\n\nIt's based on the current node.js [implementations][2]\n\n## Installation\n\n```\n$ npm install os-shim --save[-dev]\n```\n\n## Usage\n\nYou simply should use the `os-shim` module instead of the `os` native node.js module\n\n```js\nvar os = require('os-shim')\nos.tmpdir()\n```\nYou can mutate the `os-shim` module object without worring about it can create side effects in the native `os` module object\n\n## The missing API\n\nThe following API is missing in node.js `0.8.x` and lower versions\n\n#### os.tmpdir()\nReturns the operating system's default directory for temp files\n\n#### os.endianness()\nReturns the endianness of the CPU. Possible values are \"BE\" or \"LE\"\n\n#### os.EOL\nA constant defining the appropriate End-of-line marker for the operating system\n\n#### os.platform()\nReturns the operating system platform\n\n#### os.arch()\nReturns the operating system CPU architecture\n\n## Contributing\n\nInstead of a formal styleguide, take care to maintain the existing coding style.\n\nAdd unit tests for any new or changed functionality\n\n### Development\n\nClone the repository\n```shell\n$ git clone https://github.com/adesisnetlife/node-os-shim.git && cd node-os-shim\n```\n\nInstall dependencies\n```shell\n$ npm install\n```\n\nRun tests\n```shell\n$ make test\n```\n\n## Release History\n\n- **0.1.1** `2013-12-11`\n    - Add platform() and arch() methods (for Node.js 0.4.x)\n- **0.1.0** `2013-12-11`\n    - Initial release\n\n## To Do\n\n- Add `os.networkInterfaces()` shim method\n\nDo you miss something? Open an issue or make a PR!\n\n## Contributors\n\n* [Tomas Aparicio](http://github.com/h2non)\n\n## License\n\nCopyright (c) 2013 Adesis Netlife S.L and contributors\n\nReleased under MIT license\n\n[1]: http://nodejs.org/api/os.html\n[2]: https://github.com/joyent/node/blob/master/lib/os.js\n[travis]: http://travis-ci.org/AdesisNetlife/node-os-shim\n[badge]: http://badge.fury.io/js/os-shim\n","repository":{"type":"git","url":"git+https://github.com/h2non/node-os-shim.git"},"bugs":{"url":"https://github.com/h2non/node-os-shim/issues"},"versions":{"0.1.0":{"name":"os-shim","version":"0.1.0","description":"Native OS module API shim for older node.js versions","homepage":"http://github.com/adesisnetlife/node-os-shim","bugs":{"url":"https://github.com/adesisnetlife/node-os-shim/issues"},"contributors":[{"name":"Tomas Aparicio","email":"tomas@aparicio.me"}],"repository":{"type":"git","url":"https://github.com/adesisnetlife/node-os-shim.git"},"licenses":"MIT","main":"lib/os","directories":{"lib":"./lib"},"engines":{"node":">= 0.4.0"},"scripts":{"test":"make test"},"keywords":["os","tmpdir","endianness","shim"],"dependencies":{},"devDependencies":{"mocha":"~1.15.1","expect.js":"~0.2.0"},"_id":"os-shim@0.1.0","dist":{"shasum":"729d8ba07cad9df39c3a4495efe620b1173caefb","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/os-shim/-/os-shim-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"h2non","email":"tomas@aparicio.me"},"maintainers":[{"name":"h2non","email":"tomas@aparicio.me"}]},"0.1.1":{"name":"os-shim","version":"0.1.1","description":"Native OS module API shim for older node.js versions","homepage":"http://github.com/adesisnetlife/node-os-shim","bugs":{"url":"https://github.com/adesisnetlife/node-os-shim/issues"},"contributors":[{"name":"Tomas Aparicio","email":"tomas@aparicio.me"}],"repository":{"type":"git","url":"https://github.com/adesisnetlife/node-os-shim.git"},"licenses":"MIT","main":"lib/os","directories":{"lib":"./lib"},"engines":{"node":">= 0.4.0"},"scripts":{"test":"make test"},"keywords":["os","tmpdir","endianness","shim"],"dependencies":{},"devDependencies":{"mocha":"~1.15.1","expect.js":"~0.2.0"},"_id":"os-shim@0.1.1","dist":{"shasum":"c9603f80f77836a5a22bee8ebe42269fb11a377d","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/os-shim/-/os-shim-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"h2non","email":"tomas@aparicio.me"},"maintainers":[{"name":"h2non","email":"tomas@aparicio.me"}]},"0.1.2":{"name":"os-shim","version":"0.1.2","description":"Native OS module API shim for older node.js versions","homepage":"http://github.com/adesisnetlife/node-os-shim","bugs":{"url":"https://github.com/adesisnetlife/node-os-shim/issues"},"contributors":[{"name":"Tomas Aparicio","email":"tomas@aparicio.me"}],"repository":{"type":"git","url":"https://github.com/adesisnetlife/node-os-shim.git"},"licenses":"MIT","main":"lib/os","directories":{"lib":"./lib"},"engines":{"node":">= 0.4.0"},"scripts":{"test":"make test"},"keywords":["os","tmpdir","endianness","shim"],"dependencies":{},"devDependencies":{"mocha":"~1.15.1","expect.js":"~0.2.0"},"_id":"os-shim@0.1.2","dist":{"shasum":"2d77a23c302a8c82b3fc9309c69b025d1bb1e100","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/os-shim/-/os-shim-0.1.2.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"h2non","email":"tomas@aparicio.me"},"maintainers":[{"name":"h2non","email":"tomas@aparicio.me"}]},"0.1.3":{"name":"os-shim","version":"0.1.3","description":"Native OS module API shim for older node.js versions","homepage":"http://github.com/h2non/node-os-shim","bugs":{"url":"https://github.com/h2non/node-os-shim/issues"},"contributors":[{"name":"Tomas Aparicio","email":"tomas@aparicio.me"}],"repository":{"type":"git","url":"git+https://github.com/h2non/node-os-shim.git"},"licenses":"MIT","main":"lib/os","directories":{"lib":"./lib"},"engines":{"node":">= 0.4.0"},"scripts":{"test":"make test"},"keywords":["os","tmpdir","endianness","shim"],"devDependencies":{"mocha":"~1.15.1","expect.js":"~0.2.0"},"gitHead":"e386b47ae97206eb3cf06f45a89ee83b3c497c69","_id":"os-shim@0.1.3","_shasum":"6b62c3791cf7909ea35ed46e17658bb417cb3917","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"h2non","email":"tomas@aparicio.me"},"maintainers":[{"name":"h2non","email":"tomas@aparicio.me"}],"dist":{"shasum":"6b62c3791cf7909ea35ed46e17658bb417cb3917","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/os-shim/-/os-shim-0.1.3.tgz"}}},"name":"os-shim","contributors":[{"name":"Tomas Aparicio","email":"tomas@aparicio.me"}],"time":{"modified":"2015-08-06T23:37:24.678Z","created":"2013-12-11T16:51:51.173Z","0.1.0":"2013-12-11T16:51:54.492Z","0.1.1":"2013-12-11T17:57:22.514Z","0.1.2":"2013-12-11T22:37:40.993Z","0.1.3":"2015-08-06T23:37:24.678Z"},"readmeFilename":"README.md","homepage":"http://github.com/h2non/node-os-shim"}