form8ion utility for managing RC files
$ npm install @form8ion/config-file --save-prod
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'}
});
})();
Writes the provided config to the appropriate rc file for the named tool
Takes a single options object as an argument, containing:
Format of the file to be written
Name of the tool that the config file is for
Path to the directory that will contain the config file
Configuration to be written to the file
$ nvm install
$ npm install
$ npm test