package.json 1.9 KB
Newer Older
DCloud_JSON's avatar
DCloud_JSON 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
{
    "name": "entities",
    "version": "3.0.1",
    "description": "Encode & decode XML and HTML entities with ease",
    "author": "Felix Boehm <me@feedic.com>",
    "funding": "https://github.com/fb55/entities?sponsor=1",
    "sideEffects": false,
    "keywords": [
        "entity",
        "decoding",
        "encoding",
        "html",
        "xml",
        "html entities"
    ],
    "directories": {
        "lib": "lib/"
    },
    "main": "lib/index.js",
    "types": "lib/index.d.ts",
    "files": [
        "lib/**/*"
    ],
    "engines": {
        "node": ">=0.12"
    },
    "devDependencies": {
        "@types/jest": "^26.0.24",
        "@types/node": "^16.4.13",
        "@typescript-eslint/eslint-plugin": "^4.29.0",
        "@typescript-eslint/parser": "^4.29.0",
        "eslint": "^7.32.0",
        "eslint-config-prettier": "^8.1.0",
        "eslint-plugin-node": "^11.1.0",
        "jest": "^27.0.3",
        "prettier": "^2.0.5",
        "ts-jest": "^27.0.4",
        "typescript": "^4.0.2"
    },
    "scripts": {
        "test": "npm run test:jest && npm run lint",
        "test:jest": "jest",
        "lint": "npm run lint:es && npm run lint:prettier",
        "lint:es": "eslint .",
        "lint:prettier": "npm run prettier -- --check",
        "format": "npm run format:es && npm run format:prettier",
        "format:es": "npm run lint:es -- --fix",
        "format:prettier": "npm run prettier -- --write",
        "prettier": "prettier '**/*.{ts,md,json,yml}'",
        "build": "tsc && cp -r src/maps lib",
        "prepare": "npm run build"
    },
    "repository": {
        "type": "git",
        "url": "git://github.com/fb55/entities.git"
    },
    "license": "BSD-2-Clause",
    "jest": {
        "preset": "ts-jest",
        "testEnvironment": "node",
        "coverageProvider": "v8"
    },
    "prettier": {
        "tabWidth": 4,
        "proseWrap": "always"
    }
}