package.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {
  2. "name": "ccount",
  3. "version": "2.0.1",
  4. "description": "Count how often a character (or substring) is used in a string",
  5. "license": "MIT",
  6. "keywords": [
  7. "character",
  8. "count",
  9. "char"
  10. ],
  11. "repository": "wooorm/ccount",
  12. "bugs": "https://github.com/wooorm/ccount/issues",
  13. "funding": {
  14. "type": "github",
  15. "url": "https://github.com/sponsors/wooorm"
  16. },
  17. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  18. "contributors": [
  19. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
  20. ],
  21. "sideEffects": false,
  22. "type": "module",
  23. "main": "index.js",
  24. "types": "index.d.ts",
  25. "files": [
  26. "index.d.ts",
  27. "index.js"
  28. ],
  29. "devDependencies": {
  30. "@types/tape": "^4.0.0",
  31. "c8": "^7.0.0",
  32. "prettier": "^2.0.0",
  33. "remark-cli": "^10.0.0",
  34. "remark-preset-wooorm": "^9.0.0",
  35. "rimraf": "^3.0.0",
  36. "tape": "^5.0.0",
  37. "type-coverage": "^2.0.0",
  38. "typescript": "^4.0.0",
  39. "xo": "^0.46.0"
  40. },
  41. "scripts": {
  42. "prepublishOnly": "npm run build && npm run format",
  43. "build": "rimraf \"*.d.ts\" && tsc && type-coverage",
  44. "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
  45. "test-api": "node --conditions development test.js",
  46. "test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api",
  47. "test": "npm run build && npm run format && npm run test-coverage"
  48. },
  49. "prettier": {
  50. "tabWidth": 2,
  51. "useTabs": false,
  52. "singleQuote": true,
  53. "bracketSpacing": false,
  54. "semi": false,
  55. "trailingComma": "none"
  56. },
  57. "xo": {
  58. "prettier": true
  59. },
  60. "remarkConfig": {
  61. "plugins": [
  62. "preset-wooorm"
  63. ]
  64. },
  65. "typeCoverage": {
  66. "atLeast": 100,
  67. "detail": true,
  68. "strict": true,
  69. "ignoreCatch": true
  70. }
  71. }