Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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.
The npm package js2yaml receives a total of 29 weekly downloads. As such, js2yaml popularity was classified as not popular.
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 0 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.