UNPKG

tsl-mastodon-api

Version:
53 lines (52 loc) 2.11 kB
{ "author": "TypeScriptLibs and Contributers", "description": "TypeScript Library for the Mastodon API", "license": "MIT", "name": "tsl-mastodon-api", "type": "module", "version": "0.5.1", "main": "lib/index.js", "types": "lib/index.d.ts", "bugs": "https://github.com/typescriptlibs/tsl-mastodon-api/issues", "homepage": "https://typescriptlibs.org/tsl-mastodon-api/", "repository": "https://github.com/typescriptlibs/tsl-mastodon-api.git", "devDependencies": { "@typescriptlibs/amd": "^1.3.1", "@typescriptlibs/tst": "^0.1.0", "tsl-mastodon-api": "file:./", "typescript": "~5.5.2" }, "engines": { "node": ">=18.16.0" }, "files": [ "amd/", "lib/", "AUTHORS.md", "CHANGELOG.md", "LICENSE.md", "README.md" ], "keywords": [ "Mastodon", "TypeScript" ], "optionalDependencies": { "node-fetch": "^3.3.2", "oauth": "~0.10.0", "ws": "^8.17.1" }, "scripts": { "build": "npm run clean && npm run build:amd && npm run build:lib", "build:amd": "cp -f src/Bridge-AMD.ts src/Bridge.ts && tsc -p src/tsconfig-amd.json ; rm src/Bridge.ts", "build:lib": "cp -f src/Bridge-Node.ts src/Bridge.ts && tsc -p src/tsconfig.json ; rm src/Bridge.ts", "clean": "rm -rf amd/ lib/ src/Bridge.ts tst-run/", "server:start": "cd tst-data && python3 -m http.server 8000 & sleep 5", "server:stop": "kill $(lsof -t -i:8000)", "test": "npm run build && npm run server:start && npm run test:run ; npm run server:stop", "test:amd": "npm run build && ( sleep 5 ; open 'http://127.0.0.1:8004/tst-data/amd/' ) & python3 -m http.server 8004", "test:run": "tst --reset --verbose tst/", "watch:amd": "npm run clean && cp -f src/Bridge-AMD.ts src/Bridge.ts && tsc -p src/tsconfig-amd.json --watch ; rm src/Bridge.ts", "watch:node": "npm run clean && cp -f src/Bridge-Node.ts src/Bridge.ts && tsc -p src/tsconfig.json --watch ; rm src/Bridge.ts" } }