You may need to install typescript npm i -g typescript Install npm i llr globally, npm i -g llr Run llr Example const {ls} = require('llr') let testPath = '.' ls({ path: testPath, callback: (path)=> { console.log(`${testPath}${path}`) } })