Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Externalizes the source map found inside a stream to an external `.js.map` file
Externalizes the source map found inside a stream to an external .js.map
file
var browserify = require('browserify')
, path = require('path')
, fs = require('fs')
, exorcist = require('exorcist')
, mapfile = path.join(__dirname, 'bundle.js.map')
browserify()
.require(require.resolve('./main'), { entry: true })
.bundle({ debug: true })
.pipe(exorcist(mapfile))
.pipe(fs.createWriteStream(path.join(__dirname, 'bundle.js'), 'utf8'))
browserify main.js --debug | exorcist bundle.js.map > bundle.js
exorcist <mapfile> <exorcist-options>
Externalizes the source map of a file that is streamed into it by pointing it's source map url to the <mapfile>.
The original source map is written to the <mapfile> as json.
OPTIONS:
--root -r The path to the original source to be included in the source map. (default '')
--url -u The path to the source map to which to point the sourceMappingURL. (default <mapfile>)
EXAMPLE:
Bundle main.js with browserify into bundle.js and externalize the map to bundle.js.map
browserify main.js --debug | exorcist bundle.js.map > bundle.js
npm install exorcist
Transforms the incoming stream of code by removing the inlined source map and writing it to an external map file. Additionally it adds a source map url that points to the extracted map file.
Name | Type | Argument | Description |
---|---|---|---|
file | String | full path to the map file to which to write the extracted source map | |
url | String |
<optional> | allows overriding the url at which the map file is found (default: name of map file) |
root | String |
<optional> | allows adjusting the source maps |
transform stream into which to pipe the code containing the source map
generated with docme
MIT
FAQs
Externalizes the source map found inside a stream to an external `.js.map` file
We found that exorcist demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.