Socket
Socket
Sign inDemoInstall

@form8ion/config-file

Package Overview
Dependencies
33
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @form8ion/config-file

form8ion utility for managing RC files


Version published
Weekly downloads
2.9K
increased by32.72%
Maintainers
2
Install size
10.7 MB
Created
Weekly downloads
 

Readme

Source

config-file

form8ion utility for managing RC files

Node CI Workflow Status Codecov

Table of Contents

Usage

MIT license npm Try @form8ion/config-file on RunKit

Installation

$ npm install @form8ion/config-file --save-prod

Example

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

PRs Welcome Commitizen friendly Conventional Commits semantic-release: angular Renovate

Dependencies

$ nvm install
$ npm install

Verification

$ npm test

FAQs

Last updated on 13 Jan 2024

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