x-api-sdk-ts
Version:
TypeScript Library for the X (ex-twitter) API V2
126 lines (125 loc) • 2.86 kB
JSON
{
"name": "x-api-sdk-ts",
"version": "2.0.5",
"description": "TypeScript Library for the X (ex-twitter) API V2",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"clean": "rm -rf dist tsconfig.tsbuildinfo",
"build": "npm run clean && tsc",
"build:watch": "npm run build -- --watch",
"prepublishOnly": "npm run build",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"lint": "eslint 'src/**/*.ts'",
"format": "prettier --write 'src/**/*.ts'",
"docs": "typedoc --out docs/api src",
"prepare": "npm run build"
},
"keywords": [
"twitter",
"x",
"api",
"sdk",
"typescript",
"typed",
"types",
"v2",
"twitter-api",
"x-api"
],
"author": "@mickaelcassy",
"license": "MIT",
"files": [
"dist",
"README.md",
"LICENSE"
],
"repository": {
"type": "git",
"url": "git+https://github.com/Micka33/x-api-sdk-ts.git"
},
"bugs": {
"url": "https://github.com/micka33/x-api-sdk-ts/issues"
},
"homepage": "https://github.com/micka33/x-api-sdk-ts#readme",
"dependencies": {},
"devDependencies": {
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.18.0",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.7",
"axios": "^1.8.3",
"dotenv": "^16.4.7",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.2",
"globals": "^15.14.0",
"jest": "^29.7.0",
"joi": "^17.13.3",
"nock": "^14.0.1",
"prettier": "^3.4.2",
"readline": "^1.3.0",
"ts-jest": "^29.2.6",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.7.3",
"typescript-eslint": "^8.20.0"
},
"engines": {
"node": ">=21.0.0"
},
"jest": {
"moduleNameMapper": {
"^src/(.*)$": [
"<rootDir>/src/$1"
],
"^auth/(.*)$": [
"<rootDir>/src/auth/$1"
],
"^api/(.*)$": [
"<rootDir>/src/api/$1"
],
"^interfaces/(.*)$": [
"<rootDir>/src/interfaces/$1"
],
"^types/(.*)$": [
"<rootDir>/src/types/$1"
],
"^utils/(.*)$": [
"<rootDir>/src/utils/$1"
]
},
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": ".",
"roots": [
"<rootDir>/src/",
"<rootDir>/tests/"
],
"testRegex": ".*\\.(spec|test)\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"src/**/*.ts",
"!src/**/*.d.ts",
"!src/types/**/*.ts",
"!src/index.ts"
],
"coverageDirectory": "../coverage",
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
},
"testEnvironment": "node"
}
}