
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
This small utility allows you to create configuration files with Javascript and convert them to YAML files on the fly.
To get started, you have to provide a configuration file (e.g. js2yaml.config.js
). E.g. the following configuration converts Javascript to YAML for Magnolia CMS:
module.exports = [
{
watch: "../magnolia/light-modules/**/*.js",
processor: {
// Process incoming JSON (optional)
json: (json) => {
return json
},
// Process resulting YAML (optional)
yaml: (yaml) => {
return (
"# This file has been auto-generated.\n" +
yaml
.replace(/"!content-type": /g, "!content-type:")
.replace(/"!inherit": /g, "!inherit:")
.replace(/!override:/g, ": !override")
)
},
// Process resulting filename (optional)
file: (file) => {
return file
},
},
},
]
Now you can start the file watching process via:
node index.js js2yaml.config.js
FAQs
Create configurations with the power of Javascript and convert it to YAML.
We found that js2yaml demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.