Tablespoon
Easily query spreadsheet-like or json data with SQLite or PostgreSQL. Built around node-postgres and node-sqlite3.
Installation
To install as a Node.js module
npm install tablespoon
To use Tablespoon's command line interface, install with the global flag
npm install tablespoon -g
If you want to use Tablespoon in both circumstances, run both commands.
Documentation
Check out the wiki for the latest documentation and the FAQ, which includes helpful tips on how to load in csv
or tsv
data into Node.js.
Example usage
See more examples.
var ts = ; var data = city: "New York" temp: 035 country: 'USA' city: 'Los Angeles' temp: 1535 country: 'USA' city: 'Paris' temp: 233 country: 'France' city: 'Marseille' temp: 527 country: 'France' city: 'London' temp: 225 country: 'UK' ts // Get the rows that don't have 15ts
Testing
Examples and testing require a postgres
role unless you change the connection string your own role. Create with createuser -s -r postgres
from the command line.
Used in
Analysis for Nominated for the Oscars but failing the Bechdel sexism test - Al Jazeera America