sanctuary-js / sanctuary-def

Run-time type system for JavaScript
MIT License
294 stars 23 forks source link

provide custom `inspect` behaviour in Node without using `require` #303

Closed davidchambers closed 3 years ago

davidchambers commented 3 years ago

Fixes #300

@dotnetCarpenter and I came up with this solution last night on Gitter. :)

Assuming that CommonJS implies Node.js has caused people problems in several environments. It's exciting to be able to provide nice string representations of def-defined functions in the REPL without using the problematic require ('util')!