JSPM

resolve-stack-cli

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q22227F
  • License MIT

A lightweight, fast command-line tool for resolving JavaScript stack traces using source maps

Package Exports

  • resolve-stack-cli
  • resolve-stack-cli/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (resolve-stack-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Resolve Stack CLI

A lightweight, fast command-line tool for resolving JavaScript stack traces using source maps.

Features

  • 🚀 Fast: Built with Bun runtime for optimal performance
  • 📁 TOML Configuration: Support for TOML-based configuration files
  • 🛠️ CLI Interface: Easy-to-use command-line interface
  • 📊 Stack Trace Resolution: Resolve minified stack traces to original source code locations
  • TypeScript: Written in TypeScript with full type safety

Installation

Prerequisites

  • Bun runtime (latest version recommended)
  • TypeScript ^5.0.0

Global Installation

Install globally from local project:

# Clone or download the project, then:
cd resolve-stack-cli
bun install
bun install -g .

Or install directly from a Git repository:

bun install -g git+https://github.com/username/resolve-stack-cli.git

Development Installation

For development purposes:

bun install

Usage

After Global Installation

resolve-stack [options]

Development Usage

bun run index.ts [options]

Command Line Options

The tool uses yargs for command-line argument parsing. Run with --help to see available options:

# If globally installed:
resolve-stack --help

# If running from source:
bun run index.ts --help

Configuration

Resolve Stack CLI supports TOML configuration files for advanced usage scenarios. Create a configuration file in your project directory:

# example.toml
[sourcemap]
appUrlBase = "https://cdn.xuante.top:44300/cdns1.bangnimang.net/fapiao-ng"
sourceMapRoot = "out"

Development

Running the Development Version

bun run start

Building

This project uses ES modules and is designed to run directly with Bun:

bun run index.ts

Dependencies

  • @iarna/toml: TOML parser for configuration files
  • source-map: Core source map processing library for stack trace resolution
  • yargs: Command-line argument parsing

Requirements

  • Node.js-compatible runtime (Bun recommended)
  • TypeScript ^5.0.0

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is private and not currently licensed for public distribution.


Built with ❤️ using Bun runtime.