GeoCSVLIB implemented in NodeJS Version available on NPM with a frontend built in express.
Install with NPM.
npm install geocsvlib
geocsvlib data_dump.csv
/*
* Get the geocsvlib
*/
const geocsvlib = require('geocsvlib')
geocsvlib.find('ip address', (result) => {
//do something with result
});
/*
* Dummy configuration file to use for initialization
*/
var configuration = {
vendor: 'mongodb' //or sqlite,
database: 'database name',
port: 'database port',
username: 'username',
password: 'password'
};
//drop config.json file in project directory to configure
-
The GeoCSV Library allows for database configuration via provision of a config.json file.
-
In such scenarios you need to pass the location of the config.json file as the second argument in the terminal, or as a dictionary when loading geocsv via code.