<commit_before># localstorage-down

localstorage implementation of leveldown for mobile and desktop browsers.

The idea is to be able to use the level stack on phone and desktops.

The scenarios envisaged are : 

1. Occasionally connected clients

2. Adhoc Networks where clients need to sync directly with each other.  

This project is intended for use with the [level eco-system](https://github.com/level/).

## Status 

[![browser support](https://ci.testling.com/no9/localstorage-down.png)](https://ci.testling.com/no9/localstorage-down)

## Install

```
	npm install localstorage-down
```

## Example 

At the command prompt in your chosen directory : 

```
npm install localstorage-down
npm install levelup 
npm install beefy -g
npm install browserify -g
```

Create a file called index.js and enter the following:

```
var leveldowngap = require('leveldown-gap')
  , levelup = require('levelup')
  , factory = function (location) { return new leveldowngap(location) }
  , db = levelup('/does/not/matter', { db: factory })

db.put('name', '<NAME>')
db.put('dob', '16 February 1941')
db.put('spouse', '<NAME>')
db.put('occupation', 'Clown')

db.readStream()
   .on('data', function (data) {
      if(typeof data.value !== 'undefined') 
         console.log(data.key, '=', data.value)
   })
   .on('error', function (err) {
      console.log('Oh my!', err)
   })
   .on('close', function () {
      console.log('Stream closed')
   })
   .on('end', function () {
     console.log('Stream ended')
   })
```

Publish the site :
<commit_msg>rm gap<commit_after># localstorage-down

localstorage implementation of leveldown for mobile and desktop browsers.

The idea is to be able to use the level stack on phone and desktops.

The scenarios envisaged are : 

1. Occasionally connected clients

2. Adhoc Networks where clients need to sync directly with each other.  

This project is intended for use with the [level eco-system](https://github.com/level/).

## Status 

[![browser support](https://ci.testling.com/no9/localstorage-down.png)](https://ci.testling.com/no9/localstorage-down)

## Install

```
	npm install localstorage-down
```

## Example 

At the command prompt in your chosen directory : 

```
npm install localstorage-down
npm install levelup 
npm install beefy -g
npm install browserify -g
```

Create a file called index.js and enter the following:

```
var leveldown = require('localstorage-down')
  , levelup = require('levelup')
  , factory = function (location) { return new leveldown(location) }
  , db = levelup('/does/not/matter', { db: factory })

db.put('name', '<NAME>')
db.put('dob', '16 February 1941')
db.put('spouse', 'Kim Young-sook')
db.put('occupation', 'Clown')

db.readStream()
   .on('data', function (data) {
      if(typeof data.value !== 'undefined') 
         console.log(data.key, '=', data.value)
   })
   .on('error', function (err) {
      console.log('Oh my!', err)
   })
   .on('close', function () {
      console.log('Stream closed')
   })
   .on('end', function () {
     console.log('Stream ended')
   })
```

Publish the site :

{'fraction_non_alphanumeric': 0.14758352254297763, 'fraction_numerical': 0.006487187804086928, 'mean_word_length': 3.7446153846153845, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 6, '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': '7401228', 'n_tokens_mistral': 1019, 'n_tokens_neox': 956, 'n_words': 294}