Skip to content

omrilotan/colombo

Repository files navigation

colombo

🕵️‍♂️ Use remote source-map to view Javascript source code from CLI

Run and follow instructions:

npx colombo

Features

  • Interactive
  • Supports reading sourcemap location from SourceMap header
  • Tries to figure out the source-map location from the source file content
  • Tries to figure out line and column from stack trace style input
  • Configure custom headers (one-time or persistant) †

† Persistant configuration is stored in ~/.colomborc.

Manual

NAME
	colombo - Read source code from sourcemap location

SYNOPSIS
	colombo [file[:line[:column]]] [options]

DESCRIPTION
	Use remote source-map to view Javascript source code from CLI

EXAMPLES
	$ colombo https://cdn.example.com/app.d0892a2.js:1:9694
	$ colombo https://cdn.example.com/app.d0892a2.js

OPTIONS
	--help										Show help
	--version, -V							Show version number
	--config									Read / Add persistant configuration
	--header, -H "key: value"	Add a header to the request


EXAMPLES
	$ colombo --help
	$ colombo https://cdn.example.com/app.d0892a2.js:1:9694 -H "Access-Token: 1234"
	$ colombo --config
	$ colombo --config -H "access-token: 1234"

About

🕵️‍♂️ View Javascript source code using source-map from CLI

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks