
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
broccoli-source-map
Advanced tools
A Broccoli plugin for inlining or extracting JavaScript and CSS source maps using convert-source-map.
$ npm install --save-dev broccoli-source-map
var sourceMap = require('broccoli-source-map')
var src = 'js_and_maps' // probably something like: sweetjs('js', {sourceMap: true, readableNames: true});
var inlined = new sourceMap.SourceMapInliner([src])
var extracted = new sourceMap.SourceMapExtractor([inlined])
require('broccoli-source-map').SourceMapInliner
combines pairs of .js
and .js.map
(.css
and .css.map
) files into one .js
(.css
) file that contains the source map as a base64 URL comment.
If the map contains file references in the sources
field, but not the sourcesContent
field, it will also inline the files into that field to make the compiled file independent of the source file.
This is very useful if you want to use broccoli-browserify because browserify reads inline source maps, but not external ones.
require('broccoli-source-map').SourceMapExtractor
extracts source maps from base64 URL comments of .js
(.css
) files into separate .js.map
(.css.map
) files, just like exorcist.
Please feel free to submit pull requests!
By participating in this project you agree to follow the Contributor Code of Conduct.
This is free and unencumbered software released into the public domain.
For more information, please refer to the UNLICENSE
file or unlicense.org.
FAQs
A Broccoli plugin for inlining or extracting sourcemaps
The npm package broccoli-source-map receives a total of 1 weekly downloads. As such, broccoli-source-map popularity was classified as not popular.
We found that broccoli-source-map demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.