Skip to content

Library for recovering files from Webpack sourcemaps (.js.map)

Notifications You must be signed in to change notification settings

inkz/unpack-jsmap

Repository files navigation

unpack-jsmap

Library for recovering files from Webpack sourcemaps (.js.map).

Install

npm i unpack-jsmap

Usage

const { unpack } = require('unpack-jsmap')

unpack('https://www.example.com/test.js').then(map => console.log(map))

API

unpackJsmap.unpack(url [, settings]): Promise<{fileName: fileContent}>

  • url - valid URL string or URL object
  • settings - (optional) settings object:
    • scriptContent - string
    • forceFetch - boolean

unpackJsmap.fetchMap(url): Promise<{fileName: fileContent}>

  • url - valid URL string or URL object

About

Library for recovering files from Webpack sourcemaps (.js.map)

Resources

Stars

Watchers

Forks

Packages

No packages published