neet/masto.js

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "masto",
  "description": "Mastodon API client for JavaScript, TypeScript, Node.js, browsers",
  "private": false,
  "version": "6.8.0",
  "author": "Ryo Igarashi <n33t5hin@gmail.com>",
  "license": "MIT",
  "type": "module",
  "sideEffects": false,
  "types": "./dist/index.d.ts",
  "main": "./dist/index.cjs",
  "module": "./dist/index.js",
  "exports": {
    ".": {
      "types": {
        "require": "./dist/index.d.cts",
        "import": "./dist/index.d.ts"
      },
      "require": "./dist/index.cjs",
      "import": "./dist/index.js"
    }
  },
  "scripts": {
    "test": "npm-run-all test:*",
    "test:unit": "jest --coverage --config=jest.config.js --selectProjects unit",
    "test:e2e": "jest --coverage --config=jest.config.js --selectProjects e2e",
    "lint": "npm-run-all lint:*",
    "lint:eslint": "eslint --ext ts --report-unused-disable-directives --cache '{src,tests,test-utils}/**/*'",
    "lint:spellcheck": "cspell --quiet '{src,test,test-utils}/**/*.{ts,tsx,js,json,md}'",
    "build": "rollup -c rollup.config.js",
    "prepublishOnly": "npm run build",
    "docs:build": "typedoc ./src/index.ts && touch ./docs/.nojekyll",
    "purge:cache": "rm -rf ./node_modules/.cache/masto"
  },
  "dependencies": {
    "change-case": "^4.1.2",
    "events-to-async": "^2.0.1",
    "isomorphic-ws": "^5.0.0",
    "ts-custom-error": "^3.3.1",
    "ws": "^8.17.1"
  },
  "devDependencies": {
    "@rollup/plugin-commonjs": "^26.0.1",
    "@rollup/plugin-json": "^6.1.0",
    "@rollup/plugin-typescript": "^11.1.6",
    "@size-limit/preset-small-lib": "^11.1.2",
    "@types/jest": "^29.5.12",
    "@types/node": "^20.12.8",
    "@types/ws": "^8.5.10",
    "@typescript-eslint/eslint-plugin": "^7.8.0",
    "@typescript-eslint/parser": "^7.8.0",
    "cspell": "^8.6.1",
    "eslint": "^8.57.0",
    "eslint-config-prettier": "^9.1.0",
    "eslint-plugin-import": "^2.29.1",
    "eslint-plugin-prettier": "^5.1.3",
    "eslint-plugin-simple-import-sort": "^12.1.0",
    "eslint-plugin-unicorn": "^51.0.1",
    "get-port": "^5.1.1",
    "ioredis": "^5.4.1",
    "iterator-helpers-polyfill": "^2.3.3",
    "jest": "^29.6.4",
    "npm-run-all": "^4.1.5",
    "prettier": "^3.3.2",
    "rollup": "^4.18.0",
    "rollup-plugin-auto-external": "^2.0.0",
    "rollup-plugin-dts": "^6.1.0",
    "rollup-plugin-node-globals": "^1.4.0",
    "size-limit": "^11.1.2",
    "ts-jest": "^29.1.2",
    "tslib": "^2.6.2",
    "typedoc": "^0.25.12",
    "typescript": "^5.4.5",
    "undici": "^6.15.0"
  },
  "files": [
    "README.md",
    "dist",
    "!**/__tests__",
    "!**/__mocks__"
  ],
  "repository": {
    "type": "git",
    "url": "git+https://github.com/neet/masto.js.git"
  },
  "keywords": [
    "mastodon",
    "client",
    "activitypub",
    "federated",
    "fediverse"
  ],
  "bugs": {
    "url": "https://github.com/neet/masto.js/issues"
  },
  "homepage": "https://github.com/neet/masto.js#readme",
  "size-limit": [
    {
      "limit": "7.0 kB",
      "path": "./dist/index.js"
    }
  ]
}