Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bluelovers/symbol.inspect


https://github.com/bluelovers/symbol.inspect

Last synced: 4 days ago
JSON representation

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);
```