Run the JavaScript code in the try{}catch(){} block
npm install tryify
import tryify from 'tryify';
tryify(function login(name,pwd){
// ...your code run in try catch block
})
.catch(function(err){
// if error, will catch error object in this block
})
.run('axetroy','111111');
git clone https://github.com/axetroy/tryify.git
cd ./tryify
yarn
You can flow Contribute Guide
Axetroy 💻 🔌 |
---|
The MIT License