
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
yaml-js-include
Advanced tools
Extension for yaml-js library to be able to include files/directories in yaml files
This package provides support custom tags in a YAML document that facilitate inclusion of external .yaml files, or directories of .yaml files. This package is a rethink of the yaml-include package.
$ npm install yaml-js-include
or
$ yarn add yaml-js-include
Here is a small example of the script which allows to load a YAML file with the include tags:
import { YamlInclude } from 'yaml-js-include';
const yamlInclude = new YamlInclude();
const myObj = yamlInclude.load<MyType>(pathToFile);
An example YAML file can look like this:
name: Example
variables: !!inc/file variables.yaml
pages: !!inc/dir ['pages', { extensions: ['.page.yaml'] }]
steps:
- name: Open Browser
type: open-browser
values:
browser: chrome
headless: true
Full example could be found here
This package adds the support for the following tags inside of YAML files:
Merges files in directory into the object
Arguments:
path - required - Relative (or absolute) path to the directoryoptions - optional - Optional options for the directory include tag. Extends IncludeDirOptions
The merge flow for the options is like this: Default options -> Options passed to the YamlInclude constructor -> Options declared on the tag inside YAML file.You can find options and defaults here
Merges files in directory into the array
Arguments:
path - required - Relative (or absolute) path to the directoryoptions - optional - Optional options for the directory include tag. Extends IncludeDirSeqOptions
The merge flow for the options is like this: Default options -> Options passed to the YamlInclude constructor -> Options declared on the tag inside YAML file.You can find options and defaults here
Parses path as a path to a single YAML document. The contents of that document will be a mapping under the key the tag is used on.
This package is written using Typescript. Please see the documentation
FAQs
Extension for yaml-js library to be able to include files/directories in yaml files
We found that yaml-js-include 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.