node-yaml-loader

0.1.0 • Public • Published

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." }

Readme

Keywords

Package Sidebar

Install

npm i node-yaml-loader

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

3.07 kB

Total Files

5

Last publish

Collaborators

  • leonardoraele