🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

r42-yaml

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

r42-yaml

YAML loader for r42

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

js-yaml

Simple plugin to allow to load YAML files with r42. YAML is a very good looking syntax for configuration files and the like.

Getting started

npm install r42-yaml

Then, to activate the loader:

require('r42-yaml')();

The module will then be available with the yaml prefix:

define(function(/*!yaml!$config*/ config) {
  // Use your structure here
})

Use another prefix than yaml

The function exported by js-yaml returns the loader function and can be passed true to prevent automatic registration of the plugin.

var r42 = require('r42');
r42.registerLoader('yamlalias', require('r42-yaml')(true));

// Now the loader will be accessible from yamlalias

Keywords

r42

FAQs

Package last updated on 22 Feb 2014

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