Socket
Socket
Sign inDemoInstall

rc-yaml-2

Package Overview
Dependencies
9
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rc-yaml-2

Extend the RC module with YAML parsing


Version published
Weekly downloads
503
increased by0.4%
Maintainers
1
Install size
823 kB
Created
Weekly downloads
 

Readme

Source

rc-yaml

rc + YAML - INI = this module

This module cannibalizes the rc module and tries to parse a YAML "rc" file, in addition to JSON and INI formats.

Key Differences Between this and rc

  • Well, if the "rc" file is not JSON, we try YAML, then fall back to INI.
  • Since there's crossover between INI and YAML, we choose YAML if the YAML parser doesn't return a String value. So, if we end up with a String, we call it INI. The end.

Usage

var rc = require('rc-yaml');

var config = rc('name', {
  defaults: 'go here'
});

Custom parsers are still supported. See rc's README.md for full usage.

If you just want the parsing function for some reason, it's accessible via:

var parser = require('rc-yaml').parser;

A Note About Peer Dependencies

This module depends on the rc module, which means installing them both side-by-side is unnecessary. One or the other, people.

Using peerDependencies here may be more politically correct, but at a cost. Since rc is "for lazy people", when in Rome...

Author, Somewhat

Christopher Hiller

License

MIT

Keywords

FAQs

Last updated on 23 Feb 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc