New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@reverse/utils

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reverse/utils

Utility functions used by other @reverse packages

latest
npmnpm
Version
1.3.8
Version published
Maintainers
2
Created
Source

@reverse/utils

Really simple utility functions used by other @reverse packages

You can install with nodejs and npm

npm i @reverse/utils

Table of Contents

  • catchFallback

catchFallback

Runs the passed function into a try/catch block, and if it throws an error it will return the second paramater

catchFallback(() => mightThrowAnError(params), 'default');

switchObject

Returns object[key] or object.default

FAQs

Package last updated on 27 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts