Newton's Preposterous Miscalculation

    symbol.inspect
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.1 • Public • Published

    symbol.inspect

    <symbol> 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
    
    import SymbolInspect = require('symbol.inspect');
     
    class A
    {
        [SymbolInspect]()
        {
            return 'my custom inspect display'
        }
    }
     
    console.log(new A);

    Install

    npm i symbol.inspect

    DownloadsWeekly Downloads

    477

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    2.71 kB

    Total Files

    5

    Last publish

    Collaborators

    • bluelovers