Skip to content

n-johnson/try-call

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

try-call

Functional try-catch for cleaner code & optimization.

Install

$ npm install try-call

Usage

var call = require('try-call');

var doc = '{ "foo": 123 }';
var parse = JSON.parse.bind(null, doc);

call(parse, function (error, doc) {
  error
  // => undefined

  doc
  // => { foo: 123}
})

About

Functional try-catch for cleaner code & optimization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%