Socket
Book a DemoInstallSign in
Socket

glov-build-sourcemap

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glov-build-sourcemap

Sourcemap handling helpers for glov-build tasks

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

Sourcemap handling helpers for glov-build tasks

API usage:

const sourcemap = require('glov-build-sourcemap');

sourcemap.init(job, file, (err, map, raw_sourcemap_file, stripped_source) => {});

// Outputs both the file (contents) and sourcemap, as either two files or inlined together
sourcemap.out(job, { relative, contents, map, inline });

// Returns a map with it's `mappings` decoded into numbers
// After decoding, format is as follows (anything beyond first entry in the array is optional)
//   map.mappings[mapped linenum][idx] = [ mapped char offset, source file index, source line, char start, name index]
map = sourcemap.decode(map)
// Encodes numerical mappings into sourcemap format
map = sourcemap.encode(filename, map);

Keywords

glov-build

FAQs

Package last updated on 19 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts