Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/anastasiaschmidt1/sourcemap-extractor

A tool to extract sourcemap files and restore original source code files.
https://github.com/anastasiaschmidt1/sourcemap-extractor

Last synced: 4 days ago
JSON representation

A tool to extract sourcemap files and restore original source code files.

Awesome Lists containing this project

README

        

# Sourcemap-Extractor

A simple tool for extracting source code files from a JavaScript source map file and organizing them in the directory structure.

It uses modules "source-map" https://www.npmjs.com/package/source-map to parse source map files and "mkdirp" https://www.npmjs.com/package/mkdirp to create the necessary directory structures.

## Getting started

Make sure you have Node.js installed on your system.

Install the necessary dependencies by running the following command in the project directory:
```bash
npm install
```
Place your main.js and its corresponding source map file in the project directory.

Run the extraction script by using the following command:
```bash
npm start
```