package.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {
  2. "name": "vfile-location",
  3. "version": "3.2.0",
  4. "description": "vfile utility to convert between positional (line and column-based) and offset (range-based) locations",
  5. "license": "MIT",
  6. "keywords": [
  7. "vfile",
  8. "vfile-util",
  9. "util",
  10. "utility",
  11. "virtual",
  12. "file",
  13. "location",
  14. "point",
  15. "position",
  16. "offset"
  17. ],
  18. "repository": "vfile/vfile-location",
  19. "bugs": "https://github.com/vfile/vfile-location/issues",
  20. "funding": {
  21. "type": "opencollective",
  22. "url": "https://opencollective.com/unified"
  23. },
  24. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  25. "contributors": [
  26. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  27. "Christian Murphy <christian.murphy.42@gmail.com>"
  28. ],
  29. "files": [
  30. "index.js",
  31. "types/index.d.ts"
  32. ],
  33. "types": "types/index.d.ts",
  34. "dependencies": {},
  35. "devDependencies": {
  36. "@types/unist": "^2.0.0",
  37. "browserify": "^17.0.0",
  38. "nyc": "^15.0.0",
  39. "prettier": "^2.0.0",
  40. "remark-cli": "^9.0.0",
  41. "remark-preset-wooorm": "^8.0.0",
  42. "tape": "^5.0.0",
  43. "tinyify": "^3.0.0",
  44. "tsd": "^0.13.1",
  45. "vfile": "^4.0.0",
  46. "xo": "^0.34.0"
  47. },
  48. "scripts": {
  49. "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
  50. "build-bundle": "browserify . -s vfileLocation > vfile-location.js",
  51. "build-mangle": "browserify . -s vfileLocation -p tinyify > vfile-location.min.js",
  52. "build": "npm run build-bundle && npm run build-mangle",
  53. "test-api": "node test",
  54. "test-coverage": "nyc --reporter lcov tape test.js",
  55. "test-types": "tsd",
  56. "test": "npm run format && npm run build && npm run test-coverage && npm run test-types"
  57. },
  58. "nyc": {
  59. "check-coverage": true,
  60. "lines": 100,
  61. "functions": 100,
  62. "branches": 100
  63. },
  64. "prettier": {
  65. "tabWidth": 2,
  66. "useTabs": false,
  67. "singleQuote": true,
  68. "bracketSpacing": false,
  69. "semi": false,
  70. "trailingComma": "none"
  71. },
  72. "xo": {
  73. "prettier": true,
  74. "esnext": false,
  75. "rules": {
  76. "unicorn/prefer-number-properties": "off"
  77. },
  78. "ignores": [
  79. "vfile-location.js"
  80. ]
  81. },
  82. "remarkConfig": {
  83. "plugins": [
  84. "preset-wooorm"
  85. ]
  86. }
  87. }