A simple Node implementation of mdb-tools
npm install mdb-parsesh
npm install mdb-parse
`Requirements
This package requires mdbtools installed on the host system.
Currently it only uses the mdb-export and mdb-tables commands.
These commands must be accessible in the shell for this package to work. Usage
$3
Accepts .mdb files and some .accdb files (2010 and earlier)
`javascript
// Import module
var Mdb = require('mdb-parse');
// Create parser object. Initialize with path of your .accdb or .mdb file
var fruit_database = new Mdb('./test/fruit.mdb');
`
$3
`javascript
var tables = fruit_database.list();
console.log(tables);
// => [ 'Fruit','Fruit Salad','Veggie Salad','Muffin/Bread','Dried']
`$3
`javascript
var fruit_table = fruit_database.table("Fruit");
console.log(fruit_table[1]);
// => {
// Fruit: "Apricot",
// Fiber: "2",
// Fat: "0",
// Protien: "1", // This spelling mistake is in the database
// Sugar: "8",
// 'Vit A': "420",
// 'Vit C': "5",
// 'Vit B1': "0",
// 'Vit B2': "0",
// 'Vit B6': "0",
// 'Vit E': "0"
// };
``