Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.17 KB

CONTRIBUTING.md

File metadata and controls

42 lines (30 loc) · 1.17 KB

Installation

npm i https://github.com/chawlapalak/Url-Inspector

Usage

  • Search and check URLs
    url-inspector -f or --file

  • Help
    url-inspector -h or --help

  • Version
    url-inspector -v or -V or --version

  • All URLs display
    url-inspector --all

  • Good URLs display
    url-inspector --good

  • Bad URLs display
    url-inspector --bad

  • Ignore URLs option
    url-inspector -i -f or --ignore --file

  • Use ESLinter (Add on in VSCode as "Prettier - Code formatter")
    npx eslint yourfile.js

  • Use Prettier (Add on in VSCode as "ESLint")
    Check all files: npx prettier --check .
    Check single file: npx prettier --check filename
    Check and Update all files at once: npx prettier --write .
    Check and Update one file at once: npx prettier --write filename

  • Testing
    Testing is done using Jest: https://jestjs.io/
    Use this command to install Jest: npm install --save-dev jest
    Run a single test file: npm run test moduleName.test.js
    Run all tests: npm run test
    Test coverage can be checked : npm run coverage or jest --coverage