UNPKG

truecallerjs

Version:

TruecallerJS: A library for effortless retrieval of phone number details using the Truecaller API in Node.js, JavaScript, and TypeScript projects.

86 lines (85 loc) 2.52 kB
{ "name": "truecallerjs", "version": "2.2.0", "description": "TruecallerJS: A library for effortless retrieval of phone number details using the Truecaller API in Node.js, JavaScript, and TypeScript projects.", "main": "dist/cjs/index.js", "module": "dist/index.js", "type": "module", "exports": { ".": { "types": "./typings/index.d.ts", "import": "./dist/index.js", "require": "./dist/cjs/index.js" }, "./package.json": "./package.json" }, "types": "./typings/index.d.ts", "bin": { "truecallerjs": "./dist/cli.js" }, "scripts": { "build": "rm -rf ./dist && tsc", "build:cjs": "tsc && npm run echo:type-cjs", "echo:type-cjs": "echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json", "cli": "NODE_OPTIONS='--es-module-specifier-resolution=node' node dist/cli.js login", "eslint": "npx eslint .", "prettier": "npx prettier --write .", "start": "NODE_OPTIONS='--es-module-specifier-resolution=node' node dist/cli.js -s 9912345678", "test": "export TEST_PHONE_NUMBER=&(echo -e '+91$((RANDOM%9000000000+1000000000))') && export TEST_INSTALLATION_ID=$(truecallerjs -i -r) && jest" }, "directories": { "test": "test" }, "repository": { "type": "git", "url": "git+https://github.com/sumithemmadi/truecallerjs.git" }, "keywords": [ "truecallerjs", "truecaller", "phone", "number", "caller", "details", "name", "email", "search", "lookup", "Information", "gathering", "address" ], "author": "Sumith Emmadi (sumithemmadi)", "license": "MIT", "bugs": { "url": "https://github.com/sumithemmadi/truecallerjs/issues" }, "homepage": "https://github.com/sumithemmadi/truecallerjs#readme", "dependencies": { "awesome-phonenumber": "^5.10.0", "axios": "^1.4.0", "chalk": "^5.3.0", "inquirer": "^9.2.9", "json-colorizer": "^2.2.2", "json-to-plain-text": "^1.1.2", "json-to-pretty-yaml": "^1.2.2", "ts-node": "^10.9.1", "xml2js": "^0.6.2", "yargs": "^17.7.2", "yargs-parser": "^21.1.1" }, "devDependencies": { "@babel/preset-env": "^7.22.9", "@types/inquirer": "^9.0.3", "@types/node": "^20.4.5", "@types/xml2js": "^0.4.11", "@types/yargs": "^17.0.24", "@typescript-eslint/eslint-plugin": "^6.2.1", "@typescript-eslint/parser": "^6.2.1", "babel-jest": "^29.6.2", "eslint": "^8.46.0", "install": "^0.13.0", "jest": "^29.6.2", "typescript": "^5.1.6" } }