🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

node-yaml-loader

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-yaml-loader

A YAML loader for Node.js that allows you to import yaml files directly.

latest
npmnpm
Version
0.1.0
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

node-yaml-loader

Adds the ability to import yaml files to Node.js.

Usage

node --import=node-yaml-loader myscript.js
# file.yaml
description: 'This is a test file.'

// myscript.js import someYamlFile from './path/to/file.yaml' with { type: 'yaml' };

console.log(someYamlFile); // Output: { description: "This is a test file." }

Keywords

node

FAQs

Package last updated on 03 Jan 2025

Did you know?

Socket

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.

Install

Related posts