github-typos-scan
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -8,2 +8,3 @@ { | ||
"rules": { | ||
"no-console": "off", | ||
"no-restricted-syntax": [ | ||
@@ -10,0 +11,0 @@ "error", |
{ | ||
"name": "github-typos-scan", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"main": "src/index.js", | ||
@@ -8,2 +8,3 @@ "description": "Typos github scan", | ||
"keywords": [ | ||
"cli", | ||
"tools", | ||
@@ -20,2 +21,10 @@ "typos", | ||
}, | ||
"homepage": "https://github.com/caioagiani/github-typos-scan", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/caioagiani/github-typos-scan" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/caioagiani/github-typos-scan/issues" | ||
}, | ||
"bin": { | ||
@@ -26,3 +35,4 @@ "github-typos-scan": "./src/bin/cli.js" | ||
"start": "node src/index.js", | ||
"test": "jest" | ||
"test": "jest", | ||
"lint": "eslint . --fix --ext .js" | ||
}, | ||
@@ -29,0 +39,0 @@ "dependencies": { |
@@ -7,9 +7,10 @@ #!/usr/bin/env node | ||
program | ||
.name('github-typo-scan') | ||
.name('github-typos-scan') | ||
.description('CLI to find typos in a Github Repository') | ||
.version(packageJSON.version) | ||
.usage('-u <url>') | ||
.option('-u, --url <char>', 'URL of the repository to scan') | ||
.parse(); | ||
.parse(process.argv); | ||
const main = async () => { | ||
(async () => { | ||
const { url } = program.opts(); | ||
@@ -21,2 +22,3 @@ | ||
); | ||
return; | ||
@@ -26,4 +28,2 @@ } | ||
await scanGithubRepository(url); | ||
}; | ||
main(); | ||
})(); |
const { fgGreen, fgRed, reset } = require('../utils/color'); | ||
const { createBrowserInstance } = require('./browser'); | ||
const validGithubRepositoryUrlRegex = /https:\/\/(www\.)?github\.com\/.*\/.+/; | ||
function githubClient() { | ||
@@ -11,2 +9,3 @@ const browserInstance = createBrowserInstance(); | ||
const validateUrl = (url) => { | ||
const validGithubRepositoryUrlRegex = /https:\/\/(www\.)?github\.com\/.*\/.+/; | ||
const isValid = validGithubRepositoryUrlRegex.test(url); | ||
@@ -13,0 +12,0 @@ |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
44243
287
0
1
0