Skip to content

Add minimal CLI tool to recover original source #484

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions