unpack-jsmap
v1.0.3
Published
Library for recovering files from Webpack sourcemaps (`.js.map`).
Downloads
2
Readme
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 objectsettings
- (optional) settings object:scriptContent
- stringforceFetch
- boolean
unpackJsmap.fetchMap(url): Promise<{fileName: fileContent}>
url
- valid URL string or URL object