We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion! I will be including promises with the next major revision
Sorry, something went wrong.
const netstatP = opts => new Promise((resolve, reject) => { const res = [] netstat( { ...opts, done: err => { if (err) return reject(err) return resolve(res) }, }, data => res.push(data), ) return res })
EDIT: Couldn't get it to work.
For what it's worth, @vjpr snippet worked for me when running:
netstatP({ filter: { protocol: 'tcp' } }).then((data) => { console.log('data', data) })
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: