Files
base-configs/packages/config-checker
ivuorinen 56362dad96 chore(release): publish
- @ivuorinen/config-checker@1.1.0
2023-10-25 19:20:33 +00:00
..
2023-10-25 19:20:33 +00:00
2023-10-25 19:20:33 +00:00

@ivuorinen/config-checker

npm package license MIT ivuorinen's Code Style

Check for existence of common configuration files in usually used locations.

Installation

Install this package as a dependencies:

# npm
npm install @ivuorinen/config-checker --save

# Yarn
yarn add @ivuorinen/config-checker

Usage

const configChecker = require('@ivuorinen/config-checker')

// Check for existance of configuration files.
// Module name for Eslint would be 'eslint' for example.
const configFiles = configChecker('module-name')

if (configFiles.length > 0) {
  console.log('Found configuration files', configFiles)
} else {
  console.log('No configuration files found')
}

Contributing

If you are interested in helping contribute, please take a look at our contribution guidelines and open an issue or pull request.

Changelog

See CHANGELOG for a human-readable history of changes.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.