unwind-js
This really just wraps up Mozilla's 'source map' package into a command line interface.
Command line usage
# Install globally. npm install -g unwind-js # Map file rebasing. unwind-js -map ./path/to/index.js.map index.js:1:23456# => file: MyComponent.tsx # => line: 101 # => column: 32 # Manifest file. unwind-js -manifest ./path/to/manifest.json vendors.js:1:23456
API usage
This package also provides an RpcError
model for moving errors over a JSON API.
Given a payload:
Use the RpcError
class to parse and rebase.
; app.post"/errors", ;
Or use the the rebase()
function to interactively rebase frames.
;; app.get"/errors/:filename", ;
TODO
- Add a client-side interface for parsing native errors and forming the
RpcError
payload.- requires 'error-stack-parser'
- Rename to 'whirlwind' ?