BLUE
PHP 7.4.33
Path:
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/serialize-error
Run
Logout
Edit File
Size: 693 B
Close
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/serialize-error/readme.md
Text
Base64
# serialize-error [](https://travis-ci.org/sindresorhus/serialize-error) > Serialize an error into a plain object Useful if you for example need to `JSON.stringify()` or `process.send()` the error. ## Install ``` $ npm install --save serialize-error ``` ## Usage ```js const serializeError = require('serialize-error'); const error = new Error('unicorn'); console.log(error); //=> [Error: unicorn] console.log(serializeError(error)); //=> {name: 'Error', message: 'unicorn', stack: 'Error: unicorn\n at Object.<anonymous> ...'} ``` ## License MIT © [Sindre Sorhus](https://sindresorhus.com)
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.js
1.18 KB
lrw-r--r--
2025-03-28 11:04:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
license
1.09 KB
lrw-r--r--
2025-03-28 11:04:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
627 B
lrw-r--r--
2025-03-28 11:04:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
readme.md
693 B
lrw-r--r--
2025-03-28 11:04:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).