{"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://registry-npm.ywwl.com/os-shim/download/os-shim-0.1.2.tgz","integrity":"sha512-/pC6olB6dbaowaT3bQ0nRbj2riZqzgAqe2VDcNul9biI17oY3TbM9Lkq+fRoxSkBAEu4cYZswyevmEPsEfFasQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHTDi0/6gpT4HcRRQ/sGupn7+1nzyjLWLghdibCAdzftAiAU/RJcNiAynjuYQaAon/2v+HP0qPknwML2emR13hTpLw=="}],"size":3765,"noattachment":false,"key":"/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"}],"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","publish_time":1386801460993,"_cnpm_publish_time":1386801460993,"dist-tags":{"latest":"0.1.3"}}