package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. "name": "@jsonjoy.com/buffers",
  3. "private": false,
  4. "publishConfig": {
  5. "access": "public"
  6. },
  7. "version": "1.0.0",
  8. "description": "Various helper utilities for working with buffers and binary data",
  9. "author": {
  10. "name": "streamich",
  11. "url": "https://github.com/streamich"
  12. },
  13. "homepage": "https://github.com/jsonjoy-com/buffers",
  14. "repository": "jsonjoy-com/buffers",
  15. "license": "Apache-2.0",
  16. "funding": {
  17. "type": "github",
  18. "url": "https://github.com/sponsors/streamich"
  19. },
  20. "keywords": [
  21. "buffer",
  22. "buffers",
  23. "uint8array",
  24. "binary",
  25. "utf8",
  26. "string",
  27. "encoding",
  28. "decoding",
  29. "reader",
  30. "writer",
  31. "streaming"
  32. ],
  33. "engines": {
  34. "node": ">=10.0"
  35. },
  36. "main": "lib/index.js",
  37. "types": "lib/index.d.ts",
  38. "typings": "lib/index.d.ts",
  39. "files": [
  40. "LICENSE",
  41. "lib/"
  42. ],
  43. "scripts": {
  44. "prettier": "prettier --ignore-path .gitignore --write \"src/**/*.{ts,tsx,js,jsx}\"",
  45. "prettier:check": "prettier --ignore-path .gitignore --list-different 'src/**/*.{ts,tsx,js,jsx}'",
  46. "lint": "yarn tslint",
  47. "tslint": "tslint 'src/**/*.{js,jsx,ts,tsx}' -t verbose --project .",
  48. "clean": "rimraf lib typedocs coverage gh-pages yarn-error.log",
  49. "build": "tsc --project tsconfig.build.json --module commonjs --target es2020 --outDir lib",
  50. "jest": "node -r ts-node/register ./node_modules/.bin/jest",
  51. "test": "jest --maxWorkers 7",
  52. "test:ci": "yarn jest --maxWorkers 3 --no-cache",
  53. "coverage": "yarn test --collectCoverage",
  54. "typedoc": "typedoc",
  55. "build:pages": "rimraf gh-pages && mkdir -p gh-pages && cp -r typedocs/* gh-pages && cp -r coverage gh-pages/coverage",
  56. "deploy:pages": "gh-pages -d gh-pages",
  57. "publish-coverage-and-typedocs": "yarn typedoc && yarn coverage && yarn build:pages && yarn deploy:pages"
  58. },
  59. "peerDependencies": {
  60. "tslib": "2"
  61. },
  62. "dependencies": {},
  63. "devDependencies": {
  64. "@types/benchmark": "^2.1.2",
  65. "@types/jest": "^29.5.12",
  66. "benchmark": "^2.1.4",
  67. "jest": "^29.7.0",
  68. "json-pack-napi": "^0.0.2",
  69. "prettier": "^3.2.5",
  70. "pretty-quick": "^3.1.3",
  71. "rimraf": "^5.0.0",
  72. "ts-jest": "^29.1.2",
  73. "ts-node": "^10.9.2",
  74. "tslib": "^2.6.2",
  75. "tslint": "^6.1.3",
  76. "tslint-config-common": "^1.6.2",
  77. "typedoc": "^0.25.12",
  78. "typescript": "^5.4.4"
  79. },
  80. "jest": {
  81. "verbose": true,
  82. "testEnvironmentOptions": {
  83. "url": "http://localhost/"
  84. },
  85. "moduleFileExtensions": [
  86. "ts",
  87. "js"
  88. ],
  89. "transform": {
  90. "^.+\\.ts$": "ts-jest"
  91. },
  92. "transformIgnorePatterns": [],
  93. "testRegex": ".*/(__tests__|__jest__|demo)/.*\\.(test|spec)\\.ts$"
  94. },
  95. "prettier": {
  96. "arrowParens": "always",
  97. "printWidth": 120,
  98. "tabWidth": 2,
  99. "useTabs": false,
  100. "semi": true,
  101. "singleQuote": true,
  102. "trailingComma": "all",
  103. "bracketSpacing": false
  104. }
  105. }