package.json 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {
  2. "name": "trim-trailing-lines",
  3. "version": "1.1.4",
  4. "description": "Remove final line feeds from a string",
  5. "license": "MIT",
  6. "keywords": [
  7. "trim",
  8. "final",
  9. "line",
  10. "newline",
  11. "characters"
  12. ],
  13. "repository": "wooorm/trim-trailing-lines",
  14. "bugs": "https://github.com/wooorm/trim-trailing-lines/issues",
  15. "funding": {
  16. "type": "github",
  17. "url": "https://github.com/sponsors/wooorm"
  18. },
  19. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  20. "contributors": [
  21. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
  22. ],
  23. "files": [
  24. "index.js"
  25. ],
  26. "dependencies": {},
  27. "devDependencies": {
  28. "browserify": "^17.0.0",
  29. "nyc": "^15.0.0",
  30. "prettier": "^2.0.0",
  31. "remark-cli": "^9.0.0",
  32. "remark-preset-wooorm": "^8.0.0",
  33. "tape": "^5.0.0",
  34. "tinyify": "^3.0.0",
  35. "xo": "^0.34.0"
  36. },
  37. "scripts": {
  38. "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
  39. "build-bundle": "browserify . -s trimTrailingLines -o trim-trailing-lines.js",
  40. "build-mangle": "browserify . -s trimTrailingLines -p tinyify -o trim-trailing-lines.min.js",
  41. "build": "npm run build-bundle && npm run build-mangle",
  42. "test-api": "node test",
  43. "test-coverage": "nyc --reporter lcov tape test.js",
  44. "test": "npm run format && npm run build && npm run test-coverage"
  45. },
  46. "nyc": {
  47. "check-coverage": true,
  48. "lines": 100,
  49. "functions": 100,
  50. "branches": 100
  51. },
  52. "prettier": {
  53. "tabWidth": 2,
  54. "useTabs": false,
  55. "singleQuote": true,
  56. "bracketSpacing": false,
  57. "semi": false,
  58. "trailingComma": "none"
  59. },
  60. "xo": {
  61. "prettier": true,
  62. "esnext": false,
  63. "ignores": [
  64. "trim-trailing-lines.js"
  65. ]
  66. },
  67. "remarkConfig": {
  68. "plugins": [
  69. "preset-wooorm"
  70. ]
  71. }
  72. }