├── README.md
├── numspy.js
├── numspy.sh
├── package.json
└── setup.sh
/README.md:
--------------------------------------------------------------------------------
1 | # numspy
2 |
3 |
4 |
5 |
6 |
7 |
8 | Installation cmd
9 |
10 | * `apt update && apt upgrade`
11 | * `pkg install git`
12 | * `git clone https://github.com/princekrvert/numspy.git `
13 | * `cd numspy`
14 | * `chmod +x *`
15 | * `./setup.sh`
16 | * > After login run the numspy.sh file
17 | * ./numspy.sh
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/numspy.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | // made by prince kumar
3 | // date 22 mar 2022
4 | // import all the requirements
5 | const truecallerjs = require('truecallerjs');
6 | const cData = require("./countryDetails.json");
7 | var prompt = require('prompt-sync')();
8 | const process = require('process');
9 | const { argv } = require('process');
10 | // make a json to check the cc to country name
11 | var cdata = { "91": "IN", "004" : "AF", "248" : "AX", "010" : "AQ", "533" :"AW", "036" : "AU",
12 | "040" : "AT" , "031" : "AZ"
13 | };
14 | require('dotenv').config()
15 | // make a help function
16 | function help()
17 | {
18 | console.log("Uses ./numspy ");
19 | console.log("Uses ./numspy -h or --help for help ");
20 | }
21 | // now handle the user arguments ..
22 | if (process.argv.length < 3 ){
23 | help();
24 | }
25 | else if (process.argv.length === 3 ){
26 | // check for the number length
27 | if (process.argv[2] === "-h" || process.argv[2] === "--help" )
28 | {
29 | help();
30 | }
31 | else if ( process.argv[2].length === 13 ){
32 | // now extract the country code form the number
33 | const cCode = process.argv[2].slice(1,3)
34 | console.log(cData[0].name);
35 |
36 |
37 |
38 | }
39 | }
40 | else {
41 | console.log('this is ti');
42 | }
43 | // make a function to exrtact the information
44 | function data(num,cCode){
45 | var searchData = {
46 | number: ,
47 | countryCode: "IN",
48 | installationId: process.env.ID,
49 | output: "JSON"
50 | }
51 |
52 | var sn = truecallerjs.searchNumber(searchData);
53 | sn.then(function(response) {
54 | console.log(response)
55 | });
56 | }
57 |
--------------------------------------------------------------------------------
/numspy.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/bash
2 | # made by prince kumar
3 | # date 22 march 2022
4 | # make a help function
5 | help(){
6 | echo -e "\033[36;1m Uses numspy "
7 | echo -e "\033[35;1m Options : --name for name "
8 | echo -e "\033[35;1m Options : --text for information in text format "
9 | }
10 | # now handle the argument
11 | if [[ ( ${1} == "-h" || ${1} == "--help") ]];then
12 | help
13 | elif [[ ${#1} -eq 13 ]];then
14 | # now check for for user options
15 | if [[ ( ${2} == "--name" || ${2} == "--name " ) ]];then
16 | truecallerjs -s ${1} --name
17 | elif [[ ( ${2} == "--text" || ${2} == "--text " ) ]];then
18 | truecallerjs -s ${1} --text
19 | else
20 | truecallerjs -s ${1} --json
21 | fi
22 | else
23 | echo -e "\033[31;1m Please provide some argument: "
24 | help
25 | fi
26 | #make a function to get the text data
27 | infojson() {
28 | #data = $(truecallerjs -s $1 --text)
29 | echo "$data"
30 | }
31 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "numspy",
3 | "version": "1.0.0",
4 | "description": "get the information about any number , based on truecaller ",
5 | "main": "app.js ",
6 | "scripts": {
7 | "test": "node app.js "
8 | },
9 | "repository": {
10 | "type": "git",
11 | "url": "git+https://github.com/princekrvert/numspy.git"
12 | },
13 | "keywords": [
14 | "truecaller",
15 | "node",
16 | "js",
17 | "information",
18 | "gathering",
19 | "princekrvert",
20 | "termux-tool",
21 | "kali",
22 | "linux"
23 | ],
24 | "author": "Prince Kumar",
25 | "license": "ISC",
26 | "bugs": {
27 | "url": "https://github.com/princekrvert/numspy/issues"
28 | },
29 | "homepage": "https://github.com/princekrvert/numspy#readme",
30 | "dependencies": {
31 | "dotenv": "^16.0.0",
32 | "prompt-sync": "^4.0.0",
33 | "truecallerjs": "^1.0.11"
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/setup.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/bash
2 | # made by prince kumar
3 | # date 22 mar 2022
4 | # first check the os
5 | os=$(uname -o)
6 | if [ ${os} == "Android" ];then
7 | #first install the node js
8 | pkg update && pkg upgrade
9 | pkg install nodejs-lts -y
10 | pkg install npm
11 | npm install dotenv
12 | npm install -g truecallerjs
13 | echo -e "\033[35;1m Login into trucaller account: "
14 | truecallerjs login
15 | elif [ ${os} == "GNU/Linux" ];then
16 | sudo apt-get update && sudo apt-get upgrade
17 | sudo apt install nodejs
18 | sudo apt-get install npm
19 | npm install dotenv truecallerjs
20 | npm install -g truecallerjs
21 | echo -e "\033[35;1m Login into trucaller account: "
22 | sudo truecallerjs login
23 | else
24 | sudo apt-get update && sudo apt-get upgrade
25 | sudo apt install nodejs
26 | sudo apt-get install npm
27 | npm install dotenv truecallerjs
28 | echo "if this script not working then run 'truecallerjs login' from your terminal: "
29 | sudo truecallerjs login
30 | fi
31 |
32 |
--------------------------------------------------------------------------------