@f1stnpm3/modi-nobis-quasi

1.0.0 • Public • Published

@f1stnpm3/modi-nobis-quasi Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ES-spec-compliant shim/polyfill/replacement for the .cause property on all Error types that works as far down as ES3

This package implements the es-shim API “multi” interface. It works in an ES3-supported environment and complies with the proposed spec.

Getting started

npm install --save @f1stnpm3/modi-nobis-quasi

Usage/Examples

const assert = require('assert');

require('@f1stnpm3/modi-nobis-quasi/auto');

try {
		x();
} catch (e) {
		const actual = new Error('a better message!', { cause: e });
		assert(actual instanceof Error);
		assert(actual.cause === e);
}

Tests

Clone the repo, npm install, and run npm test

Readme

Keywords

Package Sidebar

Install

npm i @f1stnpm3/modi-nobis-quasi

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

17.5 kB

Total Files

8

Last publish

Collaborators

  • sinhatminh11