1.3.0 • Published 12 months ago
@form8ion/config-file v1.3.0
config-file
form8ion utility for managing RC files
Table of Contents
Usage
Installation
$ npm install @form8ion/config-file --save-prodExample
import {fileTypes} from '@form8ion/core';
import {write} from '@form8ion/config-file';(async () => {
await write({
format: fileTypes.JSON,
name: 'tool-name',
path: process.cwd(),
config: {foo: 'bar', baz: 'qux'}
});
})();API
write
Writes the provided config to the appropriate rc file for the named tool
Takes a single options object as an argument, containing:
format string (required)
Format of the file to be written
name string (required)
Name of the tool that the config file is for
path string (required)
Path to the directory that will contain the config file
config object (required)
Configuration to be written to the file
Contributing
Dependencies
$ nvm install
$ npm installVerification
$ npm test1.2.0
12 months ago
1.3.0
12 months ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0-beta.2
2 years ago
1.1.0
2 years ago
1.0.1
3 years ago
1.1.0-beta.1
3 years ago
1.0.0
3 years ago
1.0.0-alpha.1
3 years ago