From def7f12b768c9771b6920c483365d126a158fc8a Mon Sep 17 00:00:00 2001 From: osher Date: Tue, 22 Aug 2017 20:32:49 +0300 Subject: [PATCH 1/2] update package name in examples... I speculate this is a fork of `nedb` you had to publish on your own in a different name. so - the name in the docs is still `nedb`... :P --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cb9c8024..dae54a5e 100755 --- a/README.md +++ b/README.md @@ -60,12 +60,12 @@ Also, if `loadDatabase` fails, all commands registered to the executor afterward ```javascript // Type 1: In-memory only datastore (no need to load the database) -var Datastore = require('nedb') +var Datastore = require('nedb-core') , db = new Datastore(); // Type 2: Persistent datastore with manual loading -var Datastore = require('nedb') +var Datastore = require('nedb-core') , db = new Datastore({ filename: 'path/to/datafile' }); db.loadDatabase(function (err) { // Callback is optional // Now commands will be executed @@ -73,14 +73,14 @@ db.loadDatabase(function (err) { // Callback is optional // Type 3: Persistent datastore with automatic loading -var Datastore = require('nedb') +var Datastore = require('nedb-core') , db = new Datastore({ filename: 'path/to/datafile', autoload: true }); // You can issue commands right away // Type 4: Persistent datastore for a Node Webkit app called 'nwtest' // For example on Linux, the datafile will be ~/.config/nwtest/nedb-data/something.db -var Datastore = require('nedb') +var Datastore = require('nedb-core') , path = require('path') , db = new Datastore({ filename: path.join(require('nw.gui').App.dataPath, 'something.db') }); From 6e72a6b85f6e3f3988f9b875b73da06d6b28a961 Mon Sep 17 00:00:00 2001 From: osher Date: Tue, 22 Aug 2017 20:48:02 +0300 Subject: [PATCH 2/2] force build --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dae54a5e..3928733f 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# NeDB - The JavaScript Database +# NeDB - The JavaScript Database [![Build Status](http://img.shields.io/travis/nedbhq/nedb-core.svg)](https://travis-ci.org/nedbhq/nedb-core) **Embedded persistent or in memory database for Node.js, nw.js, Electron and browsers, 100% JavaScript, no binary dependency**. API is a subset of MongoDB's and it's plenty fast.