mirror of
https://github.com/ivuorinen/base-configs.git
synced 2026-01-26 03:03:59 +00:00
1.9 KiB
1.9 KiB
@ivuorinen/config-checker
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.