1.0.5 • Published 3 years ago

@gh-conf/gh-conf-validate v1.0.5

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

gh-conf-validate

npm (scoped) Build Github Repo Size npm GitHub Contributors Commit

Github config libraries validator

Give us a :star: if you like our work :heart:

Please consider donating, if you like my work

Install

$ npm install @gh-conf/gh-conf-validate

Usage

const { validatePath } = require('@gh-conf/gh-conf-validate');

// Valid path
const isValid = validatePath('./gh-conf-validate');
console.log(isValid);
// Output
// true

// Invalid path
try {
  validatePath();
} catch (err) {
  console.log(err);

  // Output
  /**
  * {
  *   status: 'err',
  *   message: 'No path input',
  *   data: {}
  * }
  **/
}

Contributing

Interested in contributing to this project? You can log any issues or suggestion related to this library here

Read our contributing guide on getting started with contributing to the codebase

Contributors

Thank you to all the contributors who have helped us in making this project better 🙌