New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github-typos-scan

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-typos-scan - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

1

.eslintrc.json

@@ -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": {

12

src/bin/cli.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc