word-counting
Version:
A very powerful words counter that supports plain text and html.
147 lines (146 loc) • 4.1 kB
JSON
{
"name": "word-counting",
"version": "1.1.4",
"description": "A very powerful words counter that supports plain text and html.",
"keywords": [
"count",
"html",
"occurrence",
"text",
"words"
],
"repository": {
"type": "git",
"url": "https://github.com/nerdmax/word-counting.git"
},
"license": "MIT",
"author": "Max <mrliucan@foxmail.com>",
"files": [
"dist"
],
"main": "dist/word-counting.umd.js",
"module": "dist/word-counting.es5.js",
"typings": "dist/types/word-counting.d.ts",
"scripts": {
"prebuild": "rimraf dist docs",
"build": "tsc --module commonjs && rollup -c rollup.config.ts",
"build:doc": "typedoc --out docs --target es6 --theme minimal --mode file src",
"check-ci": "yarn check-lint && yarn test:prod && yarn check-build",
"check-lint": "yarn format:ci && yarn type-check && yarn lint",
"check-build": "yarn build && yarn build:doc",
"precommit": "lint-staged",
"commit": "git-cz",
"commitmsg": "commitlint -E HUSKY_GIT_PARAMS",
"contributors:add": "all-contributors add",
"contributors:check": "all-contributors check",
"contributors:generate": "all-contributors generate",
"contributors:init": "all-contributors init",
"deploy-docs": "gh-pages -d docs",
"format": "yarn prettier --write",
"format:ci": "yarn prettier --list-different",
"lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
"prepublishOnly": "npm run test && npm run build",
"semantic-release": "semantic-release",
"start": "rollup -c rollup.config.ts -w",
"test": "jest",
"test:prod": "yarn run test",
"test:watch": "jest --watch",
"travis-deploy-once": "travis-deploy-once",
"prettier": "prettier '**/*.{js,ts,tsx,css,json}'",
"type-check": "tsc --noEmit"
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
},
"prettier": {
"semi": false,
"singleQuote": true
},
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"src/*.{js,ts}"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/test/"
],
"coverageThreshold": {
"global": {
"branches": 90,
"functions": 90,
"lines": 90,
"statements": 90
}
},
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"testEnvironment": "node",
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"transform": {
".(ts|tsx)": "ts-jest"
}
},
"dependencies": {
"html-to-text": "^8.1.0",
"word-regex": "^0.1.2"
},
"devDependencies": {
"@commitlint/cli": "^8.0.0",
"@commitlint/config-conventional": "^8.0.0",
"@types/html-to-text": "^1.4.31",
"@types/jest": "^24.0.0",
"@types/node": "^12.7.2",
"all-contributors-cli": "^6.0.0",
"codecov": "^3.1.0",
"colors": "^1.3.2",
"commitizen": "^3.0.7",
"coveralls": "^3.0.2",
"cross-env": "^5.2.0",
"cz-conventional-changelog": "^2.1.0",
"gh-pages": "^3.2.3",
"husky": "^3.0.2",
"jest": "^24.9.0",
"jest-config": "^24.9.0",
"lint-staged": "^9.2.1",
"lodash.camelcase": "^4.3.0",
"prettier": "^1.14.3",
"prompt": "^1.0.0",
"rollup": "^1.12.3",
"rollup-plugin-analyzer": "^3.2.2",
"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^5.0.3",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-typescript2": "^0.23.0",
"semantic-release": "^19.0.2",
"travis-deploy-once": "^5.0.11",
"ts-jest": "^24.0.0",
"ts-node": "^8.0.2",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.15.0",
"tslint-config-standard": "^8.0.1",
"typedoc": "^0.15.0",
"typescript": "^3.0.3"
},
"peerDependencies": {},
"engines": {
"node": ">=6.0.0"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"{src,test}/**/*.ts": [
"prettier --write",
"git add"
]
}
}