Giter Club home page Giter Club logo

puntorigen / recover-source Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 6.0 13 KB

Light up your lost JS/TS source code with Recover-Source! ๐Ÿš€ This handy CLI tool recovers and revives your original source code from a directory packed with minified/uglified .js or .ts files, including their respective sourcemap files. Reveal the original beauty of your code, just as it was before the compilation process. Happy code hunting! ๐Ÿ•ต๏ธโ€โ™‚

JavaScript 100.00%
cli javascript minified nodejs opensource recovery refactoring sourcecode sourcemaps typescript

recover-source's Introduction

Recover-Source ๐Ÿ”Ž ๐Ÿ’ก

Recover-source is a powerful CLI tool that brings your JS/TS source code back to life โœจ. Given a directory with minified/uglified .js or .ts files along with their respective source map files, recover-source revives the original files as they were before compilation. Turn the unreadable into the understandable!

Installation ๐Ÿ”ง

npm i recover-source -g

And that's it! Recover-source is ready for action ๐Ÿš€!

Usage ๐ŸŽฎ

To use recover-source, simply provide it with a directoy containing minified files:

recover-source -i <path-to-directory-with-minified-files>

... and watch as the original source code springs back into existence!

For more information and a step-by-step guide, check out the full tutorial here: Reconstructing JavaScript Source Code from Source Maps

Happy code recovery! ๐ŸŽ‰

recover-source's People

Contributors

puntorigen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

recover-source's Issues

This doesn't work

Prettier is undefined.

And then, if I fix it, on github copilot extension.js code:

โžœ  dist recover-source -i .
node:internal/fs/utils:916
    throw new ERR_INVALID_ARG_TYPE(
          ^

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Promise
    at Object.writeFileSync (node:fs:2335:5)
    at /opt/local/lib/node_modules/recover-source/index.js:86:16

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.