Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
rollup-plugin-yaml
Advanced tools
Convert .yaml and .yml files to ES6 modules:
// import a single property from a YAML file
import { foo } from './config.yaml';
// import the whole file as an object
import config from './config.yaml';
npm install --save-dev rollup-plugin-yaml
import { rollup } from 'rollup';
import yaml from 'rollup-plugin-yaml';
rollup({
entry: 'main.js',
plugins: [
yaml({
// All YAML files will be parsed by default,
// but you can also specifically include/exclude files
include: 'node_modules/**', // Default: undefined
exclude: [ 'node_modules/foo/**', 'node_modules/bar/**' ], // Default: undefined
// optionally mutate parsed yaml with a transform function.
// The transform function may either:
// - return an updated version of the yaml content
// - return `undefined`, and mutate the yaml content directly
transform(data) {
if (Array.isArray(data))
return data.filter((element) => !element.private);
}
})
]
});
MIT
FAQs
Convert .yaml and .yml files to ES6 modules:
The npm package rollup-plugin-yaml receives a total of 0 weekly downloads. As such, rollup-plugin-yaml popularity was classified as not popular.
We found that rollup-plugin-yaml 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.