<commit_before>#Example NeDB

What is NeDB (Node embedded database)?

> Embedded persistent database for Node.js, written in Javascript, with no dependency (except NPM modules), which can be used with a simple require statement. The API is a subset of MongoDB's. You can use it as a persistent or an in-memory only datastore, and it can also be used in all recent browsers (Chrome, Firefox, Safari, IE9+).

This example is a combination of tutorials/examples below:

- https://ehret.me/a-desktop-web-app-with-node-webkit-database-with-nedb/
- https://github.com/louischatriot/nedb#creatingloading-a-database

Although js-kit is awesome, it doesn't have externs for NeDB...
So I added it [here](/code/src/js/npm/NeDB.hx).


## How to start

Create a folder named **foobar** (please use a better name; any name will do) and create folders **bin** and **src**.
See example below:

```
+ foobar
	+ bin
	+ src
		+ js
			+ npm
				- NeDB.hx
		- Main.hx<commit_msg>Update example.md<commit_after>#Example NeDB

What is NeDB (Node embedded database)?

> Embedded persistent database for Node.js, written in Javascript, with no dependency (except NPM modules), which can be used with a simple require statement. The API is a subset of MongoDB's. You can use it as a persistent or an in-memory only datastore, and it can also be used in all recent browsers (Chrome, Firefox, Safari, IE9+).

This example is a combination of tutorials/examples below:

- https://ehret.me/a-desktop-web-app-with-node-webkit-database-with-nedb/
- https://github.com/louischatriot/nedb#creatingloading-a-database

Although js-kit is awesome, it doesn't have externs for NeDB...
So I added it [here](https://github.com/MatthijsKamstra/haxenode/blob/master/06nedb/code/src/js/npm/NeDB.hx).


## How to start

Create a folder named **foobar** (please use a better name; any name will do) and create folders **bin** and **src**.
See example below:

```
+ foobar
	+ bin
	+ src
		+ js
			+ npm
				- NeDB.hx
		- Main.hx
{'fraction_non_alphanumeric': 0.10797174571140263, 'fraction_numerical': 0.0020181634712411706, 'mean_word_length': 3.8248175182481754, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 5, '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': '4963948', 'n_tokens_mistral': 685, 'n_tokens_neox': 626, 'n_words': 244}