UNPKG

scrapper-tools

Version:

Its in development but I use it in all my web automation project.

11 lines (8 loc) 223 B
import csv from 'csvtojson' import AsyncLock from 'async-lock' let lock = new AsyncLock() export default async (path) => { return await lock.acquire(path, async function() { return await csv().fromFile(path) }) }