summaryrefslogtreecommitdiff
path: root/node_modules/es6-error/README.md
diff options
context:
space:
mode:
authorLinuxWizard42 <computerwizard@linuxmail.org>2022-10-12 23:08:57 +0300
committerLinuxWizard42 <computerwizard@linuxmail.org>2022-10-12 23:08:57 +0300
commit726b81b19251674e149ccfbb1abacbd837fc6db0 (patch)
treefbdbb227dc01357eb76e8222d76185bc124c5ca6 /node_modules/es6-error/README.md
parent34f0890e175698940d49238097579f44e4d78c89 (diff)
downloadFlashRunner-726b81b19251674e149ccfbb1abacbd837fc6db0.tar.gz
FlashRunner-726b81b19251674e149ccfbb1abacbd837fc6db0.tar.zst
Removed files that should not have been included in git
Diffstat (limited to 'node_modules/es6-error/README.md')
-rw-r--r--node_modules/es6-error/README.md59
1 files changed, 0 insertions, 59 deletions
diff --git a/node_modules/es6-error/README.md b/node_modules/es6-error/README.md
deleted file mode 100644
index 8a8f130..0000000
--- a/node_modules/es6-error/README.md
+++ /dev/null
@@ -1,59 +0,0 @@
-# es6-error
-
-[![npm version](https://badge.fury.io/js/es6-error.svg)](https://www.npmjs.com/package/es6-error)
-[![Build Status](https://travis-ci.org/bjyoungblood/es6-error.svg?branch=master)](https://travis-ci.org/bjyoungblood/es6-error)
-
-An easily-extendable error class for use with ES6 classes (or ES5, if you so
-choose).
-
-Tested in Node 4.0, Chrome, and Firefox.
-
-## Why?
-
-I made this because I wanted to be able to extend Error for inheritance and type
-checking, but can never remember to add
-`Error.captureStackTrace(this, this.constructor.name)` to the constructor or how
-to get the proper name to print from `console.log`.
-
-## ES6 Usage
-
-```javascript
-
-import ExtendableError from 'es6-error';
-
-class MyError extends ExtendableError {
- // constructor is optional; you should omit it if you just want a custom error
- // type for inheritance and type checking
- constructor(message = 'Default message') {
- super(message);
- }
-}
-
-export default MyError;
-```
-
-## ES5 Usage
-
-```javascript
-
-var util = require('util');
-var ExtendableError = require('es6-error');
-
-function MyError(message) {
- message = message || 'Default message';
- ExtendableError.call(this, message);
-}
-
-util.inherits(MyError, ExtendableError);
-
-module.exports = MyError;
-```
-
-### Known Issues
-
-- Uglification can obscure error class names ([#31](https://github.com/bjyoungblood/es6-error/issues/31#issuecomment-301128220))
-
-#### Todo
-
-- Better browser compatibility
-- Browser tests