package.json 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {
  2. "name": "tweetnacl",
  3. "version": "0.14.5",
  4. "description": "Port of TweetNaCl cryptographic library to JavaScript",
  5. "main": "nacl-fast.js",
  6. "types": "nacl.d.ts",
  7. "directories": {
  8. "test": "test"
  9. },
  10. "scripts": {
  11. "build": "uglifyjs nacl.js -c -m -o nacl.min.js && uglifyjs nacl-fast.js -c -m -o nacl-fast.min.js",
  12. "test-node": "tape test/*.js | faucet",
  13. "test-node-all": "make -C test/c && tape test/*.js test/c/*.js | faucet",
  14. "test-browser": "NACL_SRC=${NACL_SRC:='nacl.min.js'} && npm run build-test-browser && cat $NACL_SRC test/browser/_bundle.js | tape-run | faucet",
  15. "build-test-browser": "browserify test/browser/init.js test/*.js | uglifyjs -c -m -o test/browser/_bundle.js 2>/dev/null && browserify test/browser/init.js test/*.quick.js | uglifyjs -c -m -o test/browser/_bundle-quick.js 2>/dev/null",
  16. "test": "npm run test-node-all && npm run test-browser",
  17. "bench": "node test/benchmark/bench.js",
  18. "lint": "eslint nacl.js nacl-fast.js test/*.js test/benchmark/*.js"
  19. },
  20. "repository": {
  21. "type": "git",
  22. "url": "https://github.com/dchest/tweetnacl-js.git"
  23. },
  24. "keywords": [
  25. "crypto",
  26. "cryptography",
  27. "curve25519",
  28. "ed25519",
  29. "encrypt",
  30. "hash",
  31. "key",
  32. "nacl",
  33. "poly1305",
  34. "public",
  35. "salsa20",
  36. "signatures"
  37. ],
  38. "author": "TweetNaCl-js contributors",
  39. "license": "Unlicense",
  40. "bugs": {
  41. "url": "https://github.com/dchest/tweetnacl-js/issues"
  42. },
  43. "homepage": "https://tweetnacl.js.org",
  44. "devDependencies": {
  45. "browserify": "^13.0.0",
  46. "eslint": "^2.2.0",
  47. "faucet": "^0.0.1",
  48. "tap-browser-color": "^0.1.2",
  49. "tape": "^4.4.0",
  50. "tape-run": "^2.1.3",
  51. "tweetnacl-util": "^0.13.3",
  52. "uglify-js": "^2.6.1"
  53. },
  54. "browser": {
  55. "buffer": false,
  56. "crypto": false
  57. }
  58. }