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

stack-analyze

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stack-analyze - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

functions/pokemon.js

5

about.js

@@ -49,2 +49,3 @@ // print table

console.table(aboutApp);
setTimeout(refreshCallback, timeout);

@@ -89,2 +90,6 @@ },

details: "art director with ADHD."
},
{
user: "Japon_HR",
details: "cosplayer, gamer, dance & halo machinima creator"
}

@@ -91,0 +96,0 @@ ];

177

CHANGELOG.md

@@ -5,33 +5,46 @@ # changelog

## version 1.2.4
### Changed
- remove jest module by node:test
- web scraping & github info using native fetch api & not axios
### fixed
## generation 3 (ver. 1.2.0 -)
### version 1.2.5
#### Added
- pokemon info tool.
#### Changed
- update script test.
- remove the cjs and mjs files.
- renove changelog based in generations similar to neo-jquery.
#### fixed
- add examples in twitch info users.
- fixed the bug create hardware info file.
### version 1.2.4
#### Changed
- remove jest module by node:test,
- web scraping & github info using native fetch api & not axios,
#### fixed
- fixed errors in:
- single stack
- multiple
- hardware information
- single stack.
- multiple.
- hardware information.
- single & multiple stack using sub await mode
## version 1.2.3
### Added
### version 1.2.3
#### Added
- bundlephobia info tool
### Changed
#### Changed
- change write json to csv in hardware information
## version 1.2.2
### Added
### version 1.2.2
#### Added
- add save file function for the tools
### Changed
#### Changed
- change the hash table to unique function in hardware information
### Fixed
#### Fixed
- fixed to unique user to multiple users with split params
## version 1.2.1
### Fixed
### version 1.2.1
#### Fixed
- rewrite form arrow functions to named function with export default.
- rewrite some test functions.
- add regexp form bitly info tool
### Changed
#### Changed
- renove menu now using categories.

@@ -41,19 +54,21 @@ - add api params.

## version 1.2.0
### Added
### version 1.2.0
#### Added
- new tool password generator
### Fixed
#### Fixed
- update anime search tool
- the files modules now using callbacks and remove no using vars
### Changed
#### Changed
- the web scraping tool decided to use the question returns to the main menu instead of going to the main menu
## version 1.1.9
### Added
## generation 2 (ver. 1.1.0 - 1.1.9)
### version 1.1.9
#### Added
- new module cheerio
- new tool webscraping
- new test
### Fixed
#### Fixed
- rewirte axios import
### Changed
#### Changed
- hardware information change from functions to hash table

@@ -63,11 +78,11 @@ - about now is hash table

- remove jsdocs the modules files
### remove
#### remove
- remove models console-table-printer
- remove hash tables
## version 1.1.8
### Fixed
### version 1.1.8
#### Fixed
- restructure all tools as a hash table with promises except the tool hardware information and about section
- update all modules
### Changed
#### Changed
- remove the module coingecko-api

@@ -77,10 +92,10 @@ - remove process.env variables to writting manual token for security

## version 1.1.7
### Added
#### Added
- twitch info tool
- remove one js module for module to cjs and esm
### Fixed
#### Fixed
- change write token to process.env varaibles own (not avalible values in github and gitlab)
- migrate cjs to esm
- rewrite module
### Changed
#### Changed
- except some hardware tools and github using models from console-table-printer

@@ -90,8 +105,8 @@ - now using esm now about is js file not folder about with index.js

## version 1.1.6
### Added
### version 1.1.6
#### Added
- module stack-analyze mode
### Fixed
#### Fixed
- rewrite code
### Changed
#### Changed
- menu renove

@@ -101,11 +116,11 @@ - renove jsdocs in some function or variables

## version 1.1.5
### Added
### version 1.1.5
#### Added
- add new tool: movie info
- add new test
- renove menu
### Fixed
#### Fixed
- rewrite in some functions and about
- remove some dependencies not using project
### Changed
#### Changed
- change multibar to 2 single bars

@@ -115,12 +130,12 @@ - change switch in all tools for hash functions tables

## version 1.1.4
### Added
### version 1.1.4
#### Added
- add new tool: bitly info
- add new test
### Fixed
#### Fixed
- rewrite some functions
- update npm modules via manual
## version 1.1.3
### Added
### version 1.1.3
#### Added
- add new module: coingecko-api

@@ -130,19 +145,19 @@ - add new tool: crypto market

- add new test
### Fixed
#### Fixed
- rewrite some functions
- update npm modules via manual
### Changed
#### Changed
- add new const variables for map array functions
## version 1.1.2
### Added
### version 1.1.2
#### Added
- add new nonolive streamers Recomend
### Fixed
#### Fixed
- rewrite multiple techstack
- rewrite test files
### Changed
#### Changed
- changed the for loop to foreach loop
## version 1.1.1
### Added
### version 1.1.1
#### Added
- using console.table only in objects variables

@@ -152,11 +167,11 @@ - using the console-table-printer in arrays in some functions and the about section

- add the new nonolive streamers and youtube dev recommedation
### Fixed
#### Fixed
- rewrite some funcions
- fragment about section
### Changed
#### Changed
- using console.table only in objects variables
- using the console-table-printer in arrays in some functions and the about section
## version 1.1.0
### Added
### version 1.1.0
#### Added
- add the new modules:

@@ -167,10 +182,12 @@ - systeminformation the main module

- add new recomendations for about section
### Fixed
#### Fixed
- rewrite the code the functions singlestack and multiple
- add the name app to question function
### Changed
#### Changed
- changed the node style color to using colors
## version 1.0.9
### Added
## generation 1 (ver. 1.0.1 - 1.0.9)
### version 1.0.9
#### Added
- add the new modules:

@@ -180,19 +197,19 @@ - timeago.js for the github user

- add new recomendations for the about section
### Fixed
#### Fixed
- return the peformance now for pagespeed
### Changed
#### Changed
- add new testing
## version 1.0.8
### Added
### version 1.0.8
#### Added
- add the new modules:
- colors
- cli-progress
### Fixed
#### Fixed
change json print to table print version
### Changed
#### Changed
- change console.dir about to console.table
- change from text to bar for pagespeed results
- add the badge tech stack project
### patch version 1.0.85
#### patch version 1.0.85
notes:

@@ -203,4 +220,4 @@ - fixed the cli run

## version 1.0.7
### Added
### version 1.0.7
#### Added
- add the new modules:

@@ -211,6 +228,6 @@ - figlet the main module

- add return in a option select except about and exit
### Fixed
#### Fixed
- the website in blank or website without http:// or https:// return the main options
- eslint custom rules without style guide
### Changed
#### Changed
- changed the inquirer list to inquirer rawlist

@@ -221,17 +238,17 @@ - rewirte jsdoc in all project except test files

## version 1.0.6
### Added
#### Added
- add the new options: multiple (analyze many sites) and exit (exit cli).
- the code was testing with eslint to avoid errors to execute
- rewrite the module docs.
### Changed
#### Changed
- the list options with inquirer
- welcome message modified
## version 1.0.5
### Changed
### version 1.0.5
#### Changed
- modify the code and module structure
### remove
#### remove
- remove the commander module
## version 1.0.4
#### version 1.0.4
- fisrt official version in npm with the modules:

@@ -242,3 +259,3 @@ - wappalyzer

## version 1.0.1 to 1.0.3
#### version 1.0.1 to 1.0.3
test version modules without wappalyzer module (only testing)
// modules
import axios from "axios";
import { format } from "timeago.js";

@@ -4,0 +3,0 @@ import colors from "colors";

@@ -13,6 +13,2 @@ // modules

import { stackSave } from "../utils.js";
const hardwareinfo = createWriteStream("hardware.csv");
const csvHeader = (obj) => `${Object.keys(obj).join(";")}\n`;

@@ -36,2 +32,4 @@ const csvData = (obj, spaces) => `${Object.values(obj).join(";")}${spaces}`;

try {
const hardwareinfo = createWriteStream("hardware.csv");
// bios info

@@ -38,0 +36,0 @@ const biosInfo = await bios();

@@ -23,3 +23,3 @@ // save password

console.info("new password:", password);
stackSave("password.txt", `new password: ${password}`)
stackSave("password.txt", `new password: ${password}`);
}

@@ -103,3 +103,3 @@ import { load } from "cheerio";

result = linkList
result = linkList;

@@ -128,4 +128,4 @@ printTable(linkList);

typeof result === "string"
? stackSave('scraping.txt', result)
: stackSave('scraping.json', JSON.stringify(result, null, 2));
? stackSave("scraping.txt", result)
: stackSave("scraping.json", JSON.stringify(result, null, 2));
} catch (err) {

@@ -132,0 +132,0 @@ console.error(colors.red(err.message));

@@ -50,3 +50,3 @@ // inquirer

.then(({ pkgName }) => {
console.info(pkgName)
console.info(pkgName);
bundlephobia(pkgName);

@@ -53,0 +53,0 @@ setTimeout(refreshCallback, 2e3);

@@ -7,2 +7,3 @@ // inquirer

import movieDB from "../functions/moviesInfo.js";
import pokemonInfo from "../functions/pokemon.js";
import twitchInfo from "../functions/twitch.js";

@@ -18,3 +19,2 @@

const queryTools = {
anime_Search(refreshCallback) {

@@ -39,7 +39,49 @@ console.clear();

},
pokemon_info(refreshCallback) {
console.clear();
inquirer.prompt([
{
type: "list",
name: "pokeOpt",
message: "enter a opt for start search",
choices: ["ID", "Name"],
},
{
type: "number",
name: "pokeId",
message: "enter a poekmon ID:",
validate: value => value > 0 || "this field not allowed empty values, NaN or number less or equal to 0",
filter(value) {
if(!value) return "";
const int = parseInt(value);
if(isNaN(int)) return "";
return int <= 0 ? "" : int;
},
when: ({pokeOpt}) => pokeOpt === "ID",
},
{
type: "input",
name: "pokeName",
message: "enter a poekmon name:",
validate(input) {
const excludeNumbers = /[^0-9]/;
return excludeNumbers.test(input) || "the pokemon name is required";
},
when: ({pokeOpt}) => pokeOpt === "Name",
},
])
.then(anw => {
pokemonInfo(anw?.pokeName || anw?.pokeId);
setTimeout(refreshCallback, 2e3);
});
},
twitch_info(refreshCallback) {
console.clear();
inquirer.prompt([
promptParams("twitchSeparator", "enter a separator for split"),
promptParams("twitchUsers", "enter a twitch user"),
promptParams("twitchSeparator", "enter a separator for split example ',':"),
promptParams("twitchUsers", "enter a twitch users example 'a,b,c'"),
promptKey("twitchClient", "enter a twitch client ID"),

@@ -46,0 +88,0 @@ promptKey("twitchToken", "enter a twitch token"),

@@ -5,4 +5,2 @@ // functions

// opts
import { menuHardwareOpts } from "../utils.js";

@@ -9,0 +7,0 @@ const utilityTools = {

{
"name": "stack-analyze",
"version": "1.2.4",
"version": "1.2.5",
"type": "module",

@@ -10,8 +10,2 @@ "description": "cli tech stack analyze and pagespeed with node.js using the wappalyzer module. with google pagespeed api, hardware and crypto market",

},
"exports": {
".": {
"require": "./index.cjs",
"import": "./index.mjs"
}
},
"dependencies": {

@@ -22,12 +16,12 @@ "axios": "^1.4.0",

"colors": "^1.4.0",
"console-table-printer": "^2.11.1",
"console-table-printer": "^2.11.2",
"figlet": "^1.6.0",
"gauge": "^5.0.1",
"inquirer": "^9.2.0",
"systeminformation": "^5.17.12",
"inquirer": "^9.2.7",
"systeminformation": "^5.18.6",
"timeago.js": "^4.0.2",
"wappalyzer": "^6.10.62"
"wappalyzer": "^6.10.63"
},
"devDependencies": {
"eslint": "^8.39.0",
"eslint": "^8.44.0",
"gh-pages": "^5.0.0",

@@ -38,3 +32,3 @@ "jsdoc": "^4.0.2"

"start": "node cli.js",
"test": "jest",
"test": "node --test test/index.test.js",
"lint:test": "eslint . --ext .js,.cjs,.mjs",

@@ -41,0 +35,0 @@ "lint:fix": "eslint . --ext .js,.cjs,.mjs --fix",

@@ -27,3 +27,3 @@ import { writeFile } from "node:fs/promises";

const menuQueryOpts = [
"anime_Search", "movie_info", "twitch_info", returnMainOpts
"anime_Search", "movie_info", "pokemon_info", "twitch_info", returnMainOpts
];

@@ -30,0 +30,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