0.1.4 • Published 5 years ago

get-cff v0.1.4

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

get-cff

Getting config from file

Travis Build StatusAppVeyor Build Statusnodenpm versionDependency StatusXO code stylecodecov

npm downloadsnpm

Why ?

Auto detect type file and import config from file. Support:

  • js
  • json
  • dot file
  • yml

Install

npm i -S get-cff

Note: This project is compatible with node v6+

Usage

import getCff from 'get-cff';

getCff('path/to/config/file')
    .then(config => {
        console.log(config);
    });

Returns config object {property: value}

Options

path

Type: string
Default: ''
Description: path to you config file

0.1.4

5 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago