UNPKG

fslockjs

Version:

Easy to use file system queue with locking and events. Provide Asynchronous utilities for Directories and File

11 lines (8 loc) 215 B
import Job from '../../Job/Job.js'; function add(command, path, params){ const job = new Job({command, path, params}); this.queue.push(job); job.state = 'queued'; return job; } export default add;