Skip to content

Add minimal CLI tool to recover original source #484

@0xdevalias

Description

@0xdevalias

I know we can write our own, and that there are a couple of existing projects out there, but it would be cool if source-map contained a minimal CLI tool that allowed us to recover the original source of a file, given it's sourcemap'd file.

Eg. Given the following files:

  • foo.js.map (sourcemap)
  • foo.js (minified)

I would imagine being able to run it as follows (or similar):

npx source-map foo.js.map > foo.js.orig

See Also

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions