Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bluelovers/symbol.inspect
https://github.com/bluelovers/symbol.inspect
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bluelovers/symbol.inspect
- Owner: bluelovers
- Created: 2020-03-24T05:01:55.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-13T00:23:36.000Z (almost 2 years ago)
- Last Synced: 2024-10-13T18:09:08.676Z (about 1 month ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# symbol.inspect
that can be used to declare custom inspect functions.
see https://nodejs.org/api/util.html#util_util_inspect_custom
## install
```
npm install symbol.inspect
``````ts
import SymbolInspect = require('symbol.inspect');class A
{
[SymbolInspect]()
{
return 'my custom inspect display'
}
}console.log(new A);
```