šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

rcfile

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rcfile

Loads library configuration in all possible ways

1.0.3
latest
Source
npm
Version published
Weekly downloads
6K
30.54%
Maintainers
1
Weekly downloads
Ā 
Created
Source

rcfile

Loads library configuration in all possible ways

npm version Build Status Coverage Status

Read library configurations from yaml, json, js files or from sections in package.json.

Installation

npm install --save rcfile

Usage

'use strict'
var rcfile = require('rcfile')

console.log(rcfile('eslint'))
//> { extends: 'standard',
//    rules:
//     { 'comma-dangle': [ 2, 'always-multiline' ],
//       'arrow-parens': [ 2, 'as-needed' ] } }

console.log(rcfile('travis', { configFileName: '.travis' }))
//> { language: 'node_js',
//    sudo: false,
//    node_js: [ 'v0.10', 'v4' ],
//    cache: { directories: [ 'node_modules' ] },
//    before_install: [ 'npm install -g npm@3' ],
//    install: [ 'npm install' ],
//    after_success:
//     [ 'if [[ $TRAVIS_NODE_VERSION == "v4" ]]; then npm run coveralls; fi;',
//       'if [[ $TRAVIS_NODE_VERSION == "v4" ]]; then npm run semantic-release; fi;' ] }

License

MIT Ā© Zoltan Kochan

Dependencies dependency status

Dev Dependencies devDependency status

  • chai: BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
  • cz-conventional-changelog: Commitizen adapter following the conventional-changelog format.
  • eslint: An AST-based pattern checker for JavaScript.
  • eslint-config-standard: JavaScript Standard Style - ESLint Shareable Config
  • eslint-plugin-promise: Enforce best practices for JavaScript promises
  • eslint-plugin-standard: ESlint Plugin for the Standard Linter
  • ghooks: Simple git hooks
  • istanbul: Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests
  • mocha: simple, flexible, fun test framework
  • mos: A pluggable module that injects content into your markdown files via hidden JavaScript snippets
  • mos-plugin-readme: A mos plugin for generating README
  • semantic-release: automated semver compliant package publishing
  • validate-commit-msg: Script to validate a commit message follows the conventional changelog standard

Keywords

rc

FAQs

Package last updated on 30 May 2016

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