ericvicenti / ericvicenti/ssh-keygen

Support for Promises, (async/await)

Open
#21 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
65
Forks
47
PR merge metrics
No merged PRs in 30d

Description

**_keygen_** function is normal function not Promise or async function. I confused for a while and realized it may want some async methods.

code
```
keygen({
location: location,
comment: comment,
password: password,
read: true,
format: format
}, function(err, out){
console.log('111')
fs.writeFile('aaa',out.key)
});
console.log('222')

```
result
```
222
111
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.