Skip to content

Commit 1767748

Browse files
back up commit
1 parent 309084a commit 1767748

File tree

5 files changed

+38
-3
lines changed

5 files changed

+38
-3
lines changed

example-images/double.png

-161 KB
Binary file not shown.

package.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
11
{
22
"name": "techstack-cli",
3-
"version": "1.0.0",
3+
"version": "1.0.4",
44
"description": "CLI app for detecting technologies behind a company",
55
"main": "src/index.js",
66
"repository": "git@github.com:existentialcoder/TechstackCLI.git",
77
"author": "existentialcoder <shravanayyappa@gmail.com>",
88
"license": "MIT",
99
"private": false,
10-
"keywords": ["techstack", "technologies stack", "Technologies Stack", "Companies Tehnologies", "Wappalyzer", "wappalyzer-cli", "Wappalyzer Command Line", "wappalyzer cli"],
10+
"keywords": [
11+
"techstack",
12+
"technologies stack",
13+
"Technologies Stack",
14+
"Companies Tehnologies",
15+
"Wappalyzer",
16+
"wappalyzer-cli",
17+
"Wappalyzer Command Line",
18+
"wappalyzer cli"
19+
],
1120
"bin": {
12-
"techstack": "./src/"
21+
"techstack": "./src/index.js"
1322
},
1423
"engine": {
1524
"node": "10"
1625
},
26+
"preferGlobal": true,
1727
"scripts": {
1828
"unit": "nyc jest --detectOpenHandles",
1929
"test": "yarn unit",
@@ -79,6 +89,7 @@
7989
"chalk": "^4.1.0",
8090
"commander": "^6.0.0",
8191
"console-table-printer": "^2.2.6",
92+
"techstack-cli": "^1.0.4",
8293
"wappalyzer": "^6.2.1"
8394
},
8495
"devDependencies": {

src/index.js

100644100755
File mode changed.

src/index.test.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const { mockProcessExit } = require('jest-mock-process');
2+
const CLI = require('.');
3+
4+
describe('Tech stack CLI', () => {
5+
// eslint-disable-next-line
6+
CLI.getTechResponse = jest.fn();
7+
it('prints tech stack for a valid link', async () => {
8+
CLI.getTechResponse.mockResolvedValueOnce({
9+
la: 'La',
10+
});
11+
console.log(CLI.techstackCLI);
12+
await CLI.techstackCLI(['https://www.freshdesk.com']);
13+
});
14+
});

yarn.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4151,6 +4151,16 @@ table@^5.2.3:
41514151
slice-ansi "^2.1.0"
41524152
string-width "^3.0.0"
41534153

4154+
techstack-cli@^1.0.4:
4155+
version "1.0.4"
4156+
resolved "https://registry.yarnpkg.com/techstack-cli/-/techstack-cli-1.0.4.tgz#371812031203a34c58b593bd33cc0d4d14175c89"
4157+
integrity sha512-xDal9ozsCu6AovTM1bslFpNqlL4MZSgJ45aADVYml7vY+aGIp52Cqp+e5nCCiueZP7KKu8NobkjJ0k0f1rl/lw==
4158+
dependencies:
4159+
chalk "^4.1.0"
4160+
commander "^6.0.0"
4161+
console-table-printer "^2.2.6"
4162+
wappalyzer "^6.2.1"
4163+
41544164
terminal-link@^2.0.0:
41554165
version "2.1.1"
41564166
resolved "https://registry.yarnpkg.com/terminal-link/-/terminal-link-2.1.1.tgz#14a64a27ab3c0df933ea546fba55f2d078edc994"

0 commit comments

Comments
 (0)