New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

csv-db

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csv-db - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

todo.txt

2

lib/csvDb.js

@@ -118,3 +118,3 @@ var Q = require('q');

}
deferred.resolve(true);
deferred.resolve(id);
});

@@ -121,0 +121,0 @@ }.bind(this));

{
"name": "csv-db",
"version": "0.0.0",
"version": "0.0.1",
"description": "Simple filebased database",

@@ -29,3 +29,10 @@ "main": "index.js",

"expect.js": "~0.2.0"
}
},
"readme": "# CSV based Database\n\nI was looking for a lightweight replacement for a database in one of my node.js workshops.\nThis is the result: the data is stored in files. The rows are separated by new line characters\nand the fields are separated by semicolons.\nThe first version of the database implementation was completely synchronous whereas the current version\nheavily relies on promises.\n\n# API\n## get(id)\nRead either all data of a certain file or just one data set. The output is an array containing\none or more objects, depending on what was fetched.\n## insert(newData)\nInsert a new row to the database. Data is an object with column names as keys and the values to be inserted as - the values.\n## update(data, id)\nUpdate an existing row. Data is an object containing ALL the values excluding the id. id is the identifier of the row to be updated.\n## delete(id)\nDelete an existing row. id is the identifier of the row to be deleted.",
"readmeFilename": "README.md",
"_id": "csv-db@0.0.1",
"dist": {
"shasum": "e9980b8acbd04b3ffedd1d04b3b929bb55d10c00"
},
"_from": "/Users/sspringer/srv/nodeCsvDb/"
}

@@ -228,4 +228,6 @@ var CsvDb = require('../lib/csvDb');

promise.then(function () {
promise.then(function (id) {
try {
expect(id).to.be(1);
var fileContent = fs.readFileSync(file.create, 'utf-8');

@@ -254,4 +256,6 @@

promise.then(function () {
promise.then(function (id) {
try {
expect(id).to.be(3);
var fileContent = fs.readFileSync(file.create, 'utf-8');

@@ -258,0 +262,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc