<commit_before># Node OS shim [![Build Status](https://secure.travis-ci.org/AdesisNetlife/node-os-shim.png?branch=master)](http://travis-ci.org/AdesisNetlife/node-os-shim)

> Native OS module API shim for older node.js versions

## About 

Node.js team was frozen the [OS module API][1] in 0.10.x version, however the API differs a bit in lower node.js versions

This shim just provides the missing OS module API that exist on the latest node.js versions. 
You can use it in lower node.js versions and feels like you are in latest versions

It's based on the current node.js [implementations][2]

## Installation

```
$ npm install os-shim --save[-dev]
```

## Usage

You simply should use the `os-shim` module instead of the `os` native node.js module

```js
var os = require('os-shim')
os.tmpdir()
```
You can mutate the `os-shim` module object without worring about it can create side effects in the native `os` module object

## The missing API

#### os.tmpdir()
Returns the operating system's default directory for temp files

#### os.endianness()
Returns the endianness of the CPU. Possible values are "BE" or "LE"

#### os.EOL
A constant defining the appropriate End-of-line marker for the operating system

## Contributing

Instead of a formal styleguide, take care to maintain the existing coding style.

Add unit tests for any new or changed functionality

### Development<commit_msg>chore(docs): update docs<commit_after># Node OS shim [![Build Status](https://secure.travis-ci.org/AdesisNetlife/node-os-shim.png?branch=master)](http://travis-ci.org/AdesisNetlife/node-os-shim)

> Native OS module API shim for older node.js versions

## About 

Node.js team was frozen the [OS module API][1] in 0.10.x version, however the API differs a bit in lower node.js versions

This shim just provides the missing OS module API that exist on the latest node.js versions. 
You can use it in lower node.js versions and feels like you are in latest versions

It's based on the current node.js [implementations][2]

## Installation

```
$ npm install os-shim --save[-dev]
```

## Usage

You simply should use the `os-shim` module instead of the `os` native node.js module

```js
var os = require('os-shim')
os.tmpdir()
```
You can mutate the `os-shim` module object without worring about it can create side effects in the native `os` module object

## The missing API

The following API is missing in node.js `0.8.x` and lower versions

#### os.tmpdir()
Returns the operating system's default directory for temp files

#### os.endianness()
Returns the endianness of the CPU. Possible values are "BE" or "LE"

#### os.EOL
A constant defining the appropriate End-of-line marker for the operating system

## Contributing

Instead of a formal styleguide, take care to maintain the existing coding style.

Add unit tests for any new or changed functionality

### Development
{'fraction_non_alphanumeric': 0.09766306243460063, 'fraction_numerical': 0.004185559818625741, 'mean_word_length': 4.311111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5719878', 'n_tokens_mistral': 871, 'n_tokens_neox': 849, 'n_words': 380}