Example const nayan = require('your-project-name'); nayan.alldown('url') .then(data => { console.log(data); }) .catch(error => { console.error('Error downloading:', error); });