@xdevplatform/xdk
Version:
A modern TypeScript/JavaScript SDK for the X API
131 lines • 3.4 kB
JSON
{
"name": "@xdevplatform/xdk",
"version": "0.3.0",
"description": "A modern TypeScript/JavaScript SDK for the X API",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"./client": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"./http-client": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"./oauth2": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"./oauth1": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"./crypto": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
}
},
"files": [
"dist",
"README.md"
],
"keywords": [
"x-api",
"twitter-api",
"typescript",
"sdk",
"api-client",
"oauth2",
"oauth1",
"bearer-token",
"crypto",
"hmac-sha1",
"pkce"
],
"author": "X API SDK Team",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/xdevplatform/xdk-typescript"
},
"bugs": {
"url": "https://github.com/xdevplatform/xdk-typescript/issues"
},
"homepage": "https://github.com/xdevplatform/xdk-typescript",
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=16.14"
},
"dependencies": {
"node-fetch": "^3.3.0"
},
"devDependencies": {
"@types/node": "^20.0.0",
"@types/jest": "^29.5.0",
"typescript": "^5.0.0",
"tsup": "^7.0.0",
"prettier": "^3.0.0",
"eslint": "^8.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"typedoc": "^0.25.0",
"typedoc-plugin-markdown": "^3.15.0",
"chokidar": "^3.5.3",
"http-server": "^14.1.1",
"jest": "^29.7.0",
"ts-jest": "^29.1.0"
},
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"clean": "rm -rf dist",
"format": "prettier --write \"src/**/*.{ts,js}\"",
"lint": "eslint \"src/**/*.{ts,js}\"",
"type-check": "tsc --noEmit",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"docs": "typedoc",
"docs:build": "typedoc && echo \"Documentation generated in docs/\"",
"docs:build-simple": "node scripts/generate-docs-simple.js",
"docs:serve": "npx http-server docs -p 8080 -o",
"docs:watch": "node scripts/watch-docs.js",
"docs:mintlify": "node scripts/process-for-mintlify.js"
},
"prettier": {
"semi": true,
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 80,
"tabWidth": 2
},
"eslintConfig": {
"extends": [
"@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
}