Skip to content

qnipp/meteor-yaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meteor-yaml

Compiler plugin to import YAML files wih endings .yaml and .yml

Installation

meteor add qnipp:yaml

Usage

Import yaml files as JavaScript objects

import config from './config.yaml';

Importing YAML files is restricted to the safe schema, so functions and regexps are not supported.

Use js-yaml

Example: Load a configuration file from the assets located in the private directory.

import yaml from 'meteor/qnipp:yaml';

const mainConfig = yaml.load(Assets.getText('config/main.yaml'));

See https://github.com/nodeca/js-yaml for the complete API.

License

MIT

About

Compiler plugin to import YAML files wih endings .yaml and .yml

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors