https://github.com/brianvoe/objectdb
A Simple Object Database
https://github.com/brianvoe/objectdb
database javascript objectdb
Last synced: 11 months ago
JSON representation
A Simple Object Database
- Host: GitHub
- URL: https://github.com/brianvoe/objectdb
- Owner: brianvoe
- License: mit
- Created: 2016-10-20T22:20:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-21T01:43:35.000Z (over 9 years ago)
- Last Synced: 2025-01-24T12:29:57.486Z (about 1 year ago)
- Topics: database, javascript, objectdb
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# objectDB 
objectDB is an open-source in memory javascript database inspired by vanillajs. Designed to help you put stuff in an object.
## Features
- [x] Extremely Light weight!
- [x] Extremely fast queries
- [x] Extremely robust cross browser support
- [x] Extremely easy to learn
- [x] Extremely open source
- [x] Extremely compatible with your own code
- [x] Extremely sexy
## Install
```bash
npm install --save objectdb
```
## Test
```bash
npm test
```
If the test fails. You need to stop and walk away from the computer slowly!
## How do I use it?
I cant believe you have to ask, ok here.
```javascript
let objectDb = require('objectdb');
objectDb.name = 'smart ass';
console.log(objectDb.name);
```
## If I refresh the page I loose everything
Well no shit! Its an object!
To put it in the browsers storage
```javascript
let objectDb = require('objectdb');
objectDb.name = 'smart ass';
// Set
localStorage.setItem("data", JSON.stringify(objectDb));
// Get
let data = JSON.parse(localStorage.getItem("data"));
console.log(data);
```
## Wait a sec! Its not a database!
Oh yes it is smart ass!
Definition: "a structured set of data held in a computer, especially one that is accessible in various ways."
## Roadmap
No
## Contributing
Why?
## Copyright
Steal it! Take it all for your own.