# mongols

> mongo api interface to localStorage and plain js objects

Latest version **1.0.4** (published 2016-04-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install mongols
pnpm add mongols
yarn add mongols
bun add mongols
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2016-04-05 |
| First published | 2016-03-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Daniel Walton |
| Maintainers | belteshazzar |
| Keywords | mongo, db, mongodb, localstorage, database, query, local, storage |

## Links

- npm: https://www.npmjs.com/package/mongols
- Repository: https://github.com/belteshazzar/MongoLS
- Homepage: https://github.com/belteshazzar/MongoLS#readme
- Issues: https://github.com/belteshazzar/MongoLS/issues
- npm.io page: https://npm.io/package/mongols

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 1.0.4 (latest) — 2016-04-05
- 1.0.3 — 2016-04-05
- 1.0.2 — 2016-04-05
- 1.0.1 — 2016-04-05
- 1.0.0 — 2016-03-29

## README

MongoLS

=========

A JavaScript implementation of the mongo query api for plain objects and HTML5 localStorage.

[![Build Status](https://travis-ci.org/belteshazzar/MongoLS.svg?branch=master)](https://travis-ci.org/belteshazzar/MongoLS)

[![Coverage Status](https://coveralls.io/repos/github/belteshazzar/MongoLS/badge.svg?branch=master)](https://coveralls.io/github/belteshazzar/MongoLS?branch=master)

# In Node.js

## Installation

  `npm install mongols`

## Usage

    var mongols = require('mongols');
    var db = new mongo.DB()
    db.createCollection("sample")
    db.sample.insert({ age: 4,	legs: 0	});
    db.sample.insert([{ age: 4,	legs: 5	},{ age: 54, legs: 2	}]);
    db.sample.insertMany([{ age: 54, legs: 12 },{ age: 16					 }]);
    db.sample.insertOne({ name: "steve"		 });
    var cur = db.sample.find({ $and: [{ age : 54},{ legs: 2 }] })
    cur.next()

## Tests

  `npm test`

# In the Browser



# Contributing

If you find this useful ... well, lets not kid around, it basically works, but there is a lot of things to fix up. All help is greatly appreciated!

---
_Source: https://npm.io/package/mongols · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
