Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
package-writer
Advanced tools
Transforms and writes the files for a cartero package. Returns a map of file name to transformed output stream.
Transforms and writes the files for a cartero package. Returns a map of file name to transformed output stream.
var packageWriter = require('package-writer');
callback
's second parameter is a map of file name to output stream for the transformed file contents.
Parameters:
packageJSON
- The package info for the package being written. Should contain:
path
- the directory of the packagecartero
- any transforms that need to be performed on the assets in the package. Valid properties are styleTransform
, imageTransform
, and templateTransform
.assets
- A map of asset type to files. The valid asset types are style
, image
, and template
.
outputDir
- The directory where the transformed/copied files should be outputted.
Example:
var packageJSON = {
path : "/path/to/app/package1",
cartero : {
styleTransform : [ "sass-transform" ]
}
};
var assets = {
style : [ "/path/to/app/package1/styles.sass" ]
};
var outputDir = "/path/to/app/static/package1Output";
var outputStreams = packageWriter( packageJSON, assets, outputDir, function( err, outputStreams ) {} );
FAQs
Transforms and writes the files for a cartero package. Returns a map of file name to transformed output stream.
The npm package package-writer receives a total of 0 weekly downloads. As such, package-writer popularity was classified as not popular.
We found that package-writer 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.