package.json 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {
  2. "name": "ccount",
  3. "version": "1.1.0",
  4. "description": "Count characters",
  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. "files": [
  22. "index.js"
  23. ],
  24. "dependencies": {},
  25. "devDependencies": {
  26. "browserify": "^17.0.0",
  27. "nyc": "^15.0.0",
  28. "prettier": "^2.0.0",
  29. "remark-cli": "^9.0.0",
  30. "remark-preset-wooorm": "^8.0.0",
  31. "tape": "^5.0.0",
  32. "tinyify": "^3.0.0",
  33. "xo": "^0.34.0"
  34. },
  35. "scripts": {
  36. "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
  37. "build-bundle": "browserify . -s ccount -o ccount.js",
  38. "build-mangle": "browserify . -s ccount -p tinyify -o ccount.min.js",
  39. "build": "npm run build-bundle && npm run build-mangle",
  40. "test-api": "node test",
  41. "test-coverage": "nyc --reporter lcov tape test.js",
  42. "test": "npm run format && npm run build && npm run test-coverage"
  43. },
  44. "remarkConfig": {
  45. "plugins": [
  46. "preset-wooorm"
  47. ]
  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. "esnext": false,
  60. "ignores": [
  61. "ccount.js"
  62. ],
  63. "rules": {
  64. "unicorn/prefer-type-error": "off"
  65. }
  66. },
  67. "nyc": {
  68. "check-coverage": true,
  69. "lines": 100,
  70. "functions": 100,
  71. "branches": 100
  72. }
  73. }