Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename and cleanup a bit.

  • Loading branch information...
commit e49b70ea7a6afb0e549a3c95e6513c3036e7ce3c 1 parent b135105
@creationix authored
Showing with 5 additions and 4 deletions.
  1. +1 −0  data/.gitignore
  2. +2 −2 lib/{agregar.js → nstore.js}
  3. +2 −2 test.js
View
1  data/.gitignore
@@ -0,0 +1 @@
+*
View
4 lib/agregar.js → lib/nstore.js
@@ -11,7 +11,7 @@ var CHUNK_SIZE = 1024;
var MAX_SIZE = 1024 * 1024;
-function Collection(filename) {
+function nStore(filename) {
var writer, reader; // FDs for reading and writing to the file
var index = {};
var writeQueue = [];
@@ -283,4 +283,4 @@ function Collection(filename) {
};
}
-module.exports = Collection;
+module.exports = nStore;
View
4 test.js
@@ -1,9 +1,9 @@
var sys = require('sys'),
- Collection = require('./lib/agregar'),
+ nStore = require('./lib/nstore'),
Step = require('step');
checkRam("Startup");
-var users = new Collection("data/users.db");
+var users = new nStore("data/users.db");
checkRam("After loading db with " + users.length + " documents");
function checkRam(message) {
Please sign in to comment.
Something went wrong with that request. Please try again.