/ stream.nieuweinstituut.nl / node_modules / nice-try /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]src/2 years ago -  
[TXT]CHANGELOG.md7 years ago457  
[   ]LICENSE7 years ago1.1K 
[TXT]README.md7 years ago1.1Kd768d73 docs [كارل مبارك]
[   ]package.json2 years ago1.6K3e510ca test new git [كارل مبارك]
README.md

nice-try

Travis Build Status AppVeyor Status Coverage Status Dependencies Greenkeeper badge

A function that tries to execute a function and discards any error that occurs.

Install

npm install nice-try

Usage

const niceTry = require('nice-try')

niceTry(() => JSON.parse('true')) // true
niceTry(() => JSON.parse('truee')) // undefined
niceTry() // undefined
niceTry(true) // undefined

API

Parameters

Returns

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80