<commit_before>ES6-Mapify
======

Convert JS Objects to ES6 Maps and vice versa.

ES6 is really nice for iteration, but it's not so nice for directly referencing properties, the way JS Objects are. This is a nice way to convert back and forth. First, simply use `npm` to include `mapify` in your project's dependencies:

```
npm install es6-mapify
```

Now you can import it and use it like so:

```js
import { mapify } from 'es6-mapify';

// converts basic objects
let myObj = {foo: 'bar'};
let myMap = mapify(myObj);
myMap.get('foo'); // 'bar'

// doesn't do anything to non-objects
mapify('foo'); // 'foo';
mapify(null);  // null<commit_msg>fix readme<commit_after>ES6-Mapify
======

Convert JS Objects to ES6 Maps and vice versa.

ES6 `Map` objects are really nice for iteration, but it's not so nice for directly referencing properties, the way JS Objects are. This is a nice way to convert back and forth. First, simply use `npm` to include `mapify` in your project's dependencies:

```
npm install es6-mapify
```

Now you can import it and use it like so:

```js
import { mapify } from 'es6-mapify';

// converts basic objects
let myObj = {foo: 'bar'};
let myMap = mapify(myObj);
myMap.get('foo'); // 'bar'

// doesn't do anything to non-objects
mapify('foo'); // 'foo';
mapify(null);  // null
{'fraction_non_alphanumeric': 0.1276923076923077, 'fraction_numerical': 0.007692307692307693, 'mean_word_length': 4.042635658914729, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2382153', 'n_tokens_mistral': 437, 'n_tokens_neox': 406, 'n_words': 182}