Skip to content

axetroy/tryify

Repository files navigation

tryify

Greenkeeper badge Build Status Dependency License Prettier Node npm version

Run the JavaScript code in the try{}catch(){} block

Installation

npm install tryify

Usage

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');

Contributing

git clone https://github.com/axetroy/tryify.git
cd ./tryify
yarn

You can flow Contribute Guide

Contributors


Axetroy

💻 🔌 ⚠️ 🐛 🎨

License

The MIT License

About

Run the JavaScript code in the try{}catch(){} block

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published