import-client
v1.0.2
Published
an import client for the ecollect API
Downloads
2
Readme
import-client-js
import-client-js is a tool, made for lazy imports.
It has the capability to read CSVs, write them into .json files, and later bombard RESTful APIs with the very same files.
In order to import objects, you should use a CSV, and specify a mapping callback for the DataConvertor class, something like:
const formattedData = convertor.convertDataArrayWithCallback(unformattedData, (element)=>{
const {First_name, Last_Name} = element;
const obj = {
firstName: First_name,
lastName: Last_Name,
}
return obj;
});