0.1.0 • Published 7 months ago

node-yaml-loader v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

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

0.1.0

7 months ago