ACIL FM
Dark
Refresh
Current DIR:
/usr/lib/node_modules/npm/node_modules/err-code
/
usr
lib
node_modules
npm
node_modules
err-code
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
bower.json
589 B
chmod
View
DL
Edit
Rename
Delete
index.js
933 B
chmod
View
DL
Edit
Rename
Delete
index.umd.js
1.78 MB
chmod
View
DL
Edit
Rename
Delete
package.json
844 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/lib/node_modules/npm/node_modules/err-code/index.js
'use strict'; function assign(obj, props) { for (const key in props) { Object.defineProperty(obj, key, { value: props[key], enumerable: true, configurable: true, }); } return obj; } function createError(err, code, props) { if (!err || typeof err === 'string') { throw new TypeError('Please pass an Error to err-code'); } if (!props) { props = {}; } if (typeof code === 'object') { props = code; code = undefined; } if (code != null) { props.code = code; } try { return assign(err, props); } catch (_) { props.message = err.message; props.stack = err.stack; const ErrClass = function () {}; ErrClass.prototype = Object.create(Object.getPrototypeOf(err)); return assign(new ErrClass(), props); } } module.exports = createError;
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply