carhartl/typescript-cookie

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "typescript-cookie",
  "version": "1.0.6",
  "description": "A simple, lightweight API for handling cookies in the browser",
  "author": "Klaus Hartl",
  "license": "MIT",
  "module": "dist/typescript-cookie.mjs",
  "exports": {
    ".": {
      "types": "./dist/src/index.d.ts",
      "import": "./dist/typescript-cookie.mjs"
    },
    "./package.json": "./package.json"
  },
  "types": "./dist/src/index.d.ts",
  "keywords": [
    "browser",
    "client-side",
    "cookie",
    "cookies",
    "esm",
    "module",
    "typescript"
  ],
  "scripts": {
    "test": "jest",
    "test:e2e": "playwright test",
    "coverage": "jest --coverage",
    "format": "prettier --write .",
    "format:check": "prettier --check .",
    "lint": "eslint --ext .js,.mjs,.ts --fix .",
    "lint:check": "eslint --ext .js,.mjs,.ts .",
    "prebuild": "npm run clean",
    "build": "rollup -c && tsc --emitDeclarationOnly --declarationDir dist",
    "clean": "rm -rf dist/* built/* coverage/*",
    "release": "release-it"
  },
  "repository": {
    "type": "git",
    "url": "git@github.com:carhartl/typescript-cookie.git"
  },
  "directories": {
    "test": "test"
  },
  "files": [
    "index.js",
    "dist/**/*"
  ],
  "devDependencies": {
    "@playwright/test": "^1.31.0",
    "@rollup/plugin-typescript": "^11.0.0",
    "@types/jest": "^29.5.0",
    "@typescript-eslint/eslint-plugin": "^5.60.0",
    "@typescript-eslint/parser": "^5.60.0",
    "eslint": "^8.36.0",
    "eslint-config-prettier": "^8.8.0",
    "eslint-plugin-html": "^7.0.0",
    "eslint-plugin-markdown": "^3.0.0",
    "fast-check": "^3.0.0",
    "jest": "^29.5.0",
    "jest-environment-jsdom": "^29.5.0",
    "nano-staged": "^0.8.0",
    "prettier": "^2.3.2",
    "release-it": "^15.0.0",
    "rollup": "^3.17.2",
    "rollup-plugin-license": "^3.0.0",
    "simple-git-hooks": "^2.8.1",
    "ts-jest": "^29.0.5",
    "ts-node": "^10.2.1",
    "typescript": "~5.1.3"
  },
  "engines": {
    "node": ">=16",
    "npm": ">=9.5.0"
  }
}