-
exorcist(input, url, root, base, errorOnMissing) → {TransformStream}
-
Externalizes the source map of the file streamed in.
The source map is written as JSON to
file
, and the original file is streamed out with itssourceMappingURL
set to the path offile
(or to the value ofurl
).Events (in addition to stream events)
missing-map
emitted if no map was found in the stream and errorOnMissing is falsey (the src is still piped through in this case, but no map file is written)
Parameters:
Name Type Argument Description input
String / Object full path to the map file to which to write the extracted source map or a writable stream
url
String <optional>
full URL to the map file, set as
sourceMappingURL
in the streaming output (default: file)root
String <optional>
root URL for loading relative source paths, set as
sourceRoot
in the source map (default: '')base
String <optional>
base path for calculating relative source paths (default: use absolute paths)
errorOnMissing
Boolean <optional>
when truthy, causes 'error' to be emitted instead of 'missing-map' if no map was found in the stream (default: falsey)
Returns:
transform stream into which to pipe the code containing the source map
- Type
- TransformStream
Maintenance
Commit Frequency
Further analysis of the maintenance status of @pirxpilot/exorcist based on released npm versions cadence, the repository activity, and other data points determined that its maintenance is Inactive.
An important project maintenance signal to consider for @pirxpilot/exorcist is that it hasn't seen any new versions released to npm in the past 12 months, and could be considered as a discontinued project, or that which receives low attention from its maintainers.
In the past month we didn't find any pull request activity or change in issues status has been detected for the GitHub repository.