package.json 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. {
  2. "_args": [
  3. [
  4. {
  5. "raw": "punycode@^1.4.1",
  6. "scope": null,
  7. "escapedName": "punycode",
  8. "name": "punycode",
  9. "rawSpec": "^1.4.1",
  10. "spec": ">=1.4.1 <2.0.0",
  11. "type": "range"
  12. },
  13. "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/tough-cookie"
  14. ]
  15. ],
  16. "_from": "punycode@>=1.4.1 <2.0.0",
  17. "_id": "punycode@1.4.1",
  18. "_inCache": true,
  19. "_location": "/punycode",
  20. "_nodeVersion": "5.2.0",
  21. "_npmOperationalInternal": {
  22. "host": "packages-12-west.internal.npmjs.com",
  23. "tmp": "tmp/punycode-1.4.1.tgz_1458437236261_0.07678767060860991"
  24. },
  25. "_npmUser": {
  26. "name": "mathias",
  27. "email": "mathias@qiwi.be"
  28. },
  29. "_npmVersion": "3.8.2",
  30. "_phantomChildren": {},
  31. "_requested": {
  32. "raw": "punycode@^1.4.1",
  33. "scope": null,
  34. "escapedName": "punycode",
  35. "name": "punycode",
  36. "rawSpec": "^1.4.1",
  37. "spec": ">=1.4.1 <2.0.0",
  38. "type": "range"
  39. },
  40. "_requiredBy": [
  41. "/tough-cookie"
  42. ],
  43. "_resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",
  44. "_shasum": "c0d5a63b2718800ad8e1eb0fa5269c84dd41845e",
  45. "_shrinkwrap": null,
  46. "_spec": "punycode@^1.4.1",
  47. "_where": "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/tough-cookie",
  48. "author": {
  49. "name": "Mathias Bynens",
  50. "url": "https://mathiasbynens.be/"
  51. },
  52. "bugs": {
  53. "url": "https://github.com/bestiejs/punycode.js/issues"
  54. },
  55. "contributors": [
  56. {
  57. "name": "Mathias Bynens",
  58. "url": "https://mathiasbynens.be/"
  59. },
  60. {
  61. "name": "John-David Dalton",
  62. "url": "http://allyoucanleet.com/"
  63. }
  64. ],
  65. "dependencies": {},
  66. "description": "A robust Punycode converter that fully complies to RFC 3492 and RFC 5891, and works on nearly all JavaScript platforms.",
  67. "devDependencies": {
  68. "coveralls": "^2.11.4",
  69. "grunt": "^0.4.5",
  70. "grunt-contrib-uglify": "^0.11.0",
  71. "grunt-shell": "^1.1.2",
  72. "istanbul": "^0.4.1",
  73. "qunit-extras": "^1.4.4",
  74. "qunitjs": "~1.11.0",
  75. "requirejs": "^2.1.22"
  76. },
  77. "directories": {},
  78. "dist": {
  79. "shasum": "c0d5a63b2718800ad8e1eb0fa5269c84dd41845e",
  80. "tarball": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz"
  81. },
  82. "files": [
  83. "LICENSE-MIT.txt",
  84. "punycode.js"
  85. ],
  86. "gitHead": "0fbadd6e81f3a0ce06c38998040d6db6bdfbc5c9",
  87. "homepage": "https://mths.be/punycode",
  88. "jspm": {
  89. "map": {
  90. "./punycode.js": {
  91. "node": "@node/punycode"
  92. }
  93. }
  94. },
  95. "keywords": [
  96. "punycode",
  97. "unicode",
  98. "idn",
  99. "idna",
  100. "dns",
  101. "url",
  102. "domain"
  103. ],
  104. "license": "MIT",
  105. "main": "punycode.js",
  106. "maintainers": [
  107. {
  108. "name": "mathias",
  109. "email": "mathias@qiwi.be"
  110. },
  111. {
  112. "name": "reconbot",
  113. "email": "wizard@roborooter.com"
  114. }
  115. ],
  116. "name": "punycode",
  117. "optionalDependencies": {},
  118. "readme": "# Punycode.js [![Build status](https://travis-ci.org/bestiejs/punycode.js.svg?branch=master)](https://travis-ci.org/bestiejs/punycode.js) [![Code coverage status](http://img.shields.io/coveralls/bestiejs/punycode.js/master.svg)](https://coveralls.io/r/bestiejs/punycode.js) [![Dependency status](https://gemnasium.com/bestiejs/punycode.js.svg)](https://gemnasium.com/bestiejs/punycode.js)\n\nA robust Punycode converter that fully complies to [RFC 3492](https://tools.ietf.org/html/rfc3492) and [RFC 5891](https://tools.ietf.org/html/rfc5891), and works on nearly all JavaScript platforms.\n\nThis JavaScript library is the result of comparing, optimizing and documenting different open-source implementations of the Punycode algorithm:\n\n* [The C example code from RFC 3492](https://tools.ietf.org/html/rfc3492#appendix-C)\n* [`punycode.c` by _Markus W. Scherer_ (IBM)](http://opensource.apple.com/source/ICU/ICU-400.42/icuSources/common/punycode.c)\n* [`punycode.c` by _Ben Noordhuis_](https://github.com/bnoordhuis/punycode/blob/master/punycode.c)\n* [JavaScript implementation by _some_](http://stackoverflow.com/questions/183485/can-anyone-recommend-a-good-free-javascript-for-punycode-to-unicode-conversion/301287#301287)\n* [`punycode.js` by _Ben Noordhuis_](https://github.com/joyent/node/blob/426298c8c1c0d5b5224ac3658c41e7c2a3fe9377/lib/punycode.js) (note: [not fully compliant](https://github.com/joyent/node/issues/2072))\n\nThis project is [bundled](https://github.com/joyent/node/blob/master/lib/punycode.js) with [Node.js v0.6.2+](https://github.com/joyent/node/compare/975f1930b1...61e796decc) and [io.js v1.0.0+](https://github.com/iojs/io.js/blob/v1.x/lib/punycode.js).\n\n## Installation\n\nVia [npm](https://www.npmjs.com/) (only required for Node.js releases older than v0.6.2):\n\n```bash\nnpm install punycode\n```\n\nVia [Bower](http://bower.io/):\n\n```bash\nbower install punycode\n```\n\nVia [Component](https://github.com/component/component):\n\n```bash\ncomponent install bestiejs/punycode.js\n```\n\nIn a browser:\n\n```html\n<script src=\"punycode.js\"></script>\n```\n\nIn [Node.js](https://nodejs.org/), [io.js](https://iojs.org/), [Narwhal](http://narwhaljs.org/), and [RingoJS](http://ringojs.org/):\n\n```js\nvar punycode = require('punycode');\n```\n\nIn [Rhino](http://www.mozilla.org/rhino/):\n\n```js\nload('punycode.js');\n```\n\nUsing an AMD loader like [RequireJS](http://requirejs.org/):\n\n```js\nrequire(\n {\n 'paths': {\n 'punycode': 'path/to/punycode'\n }\n },\n ['punycode'],\n function(punycode) {\n console.log(punycode);\n }\n);\n```\n\n## API\n\n### `punycode.decode(string)`\n\nConverts a Punycode string of ASCII symbols to a string of Unicode symbols.\n\n```js\n// decode domain name parts\npunycode.decode('maana-pta'); // 'mañana'\npunycode.decode('--dqo34k'); // '☃-⌘'\n```\n\n### `punycode.encode(string)`\n\nConverts a string of Unicode symbols to a Punycode string of ASCII symbols.\n\n```js\n// encode domain name parts\npunycode.encode('mañana'); // 'maana-pta'\npunycode.encode('☃-⌘'); // '--dqo34k'\n```\n\n### `punycode.toUnicode(input)`\n\nConverts a Punycode string representing a domain name or an email address to Unicode. Only the Punycoded parts of the input will be converted, i.e. it doesn’t matter if you call it on a string that has already been converted to Unicode.\n\n```js\n// decode domain names\npunycode.toUnicode('xn--maana-pta.com');\n// → 'mañana.com'\npunycode.toUnicode('xn----dqo34k.com');\n// → '☃-⌘.com'\n\n// decode email addresses\npunycode.toUnicode('джумла@xn--p-8sbkgc5ag7bhce.xn--ba-lmcq');\n// → 'джумла@джpумлатест.bрфa'\n```\n\n### `punycode.toASCII(input)`\n\nConverts a lowercased Unicode string representing a domain name or an email address to Punycode. Only the non-ASCII parts of the input will be converted, i.e. it doesn’t matter if you call it with a domain that’s already in ASCII.\n\n```js\n// encode domain names\npunycode.toASCII('mañana.com');\n// → 'xn--maana-pta.com'\npunycode.toASCII('☃-⌘.com');\n// → 'xn----dqo34k.com'\n\n// encode email addresses\npunycode.toASCII('джумла@джpумлатест.bрфa');\n// → 'джумла@xn--p-8sbkgc5ag7bhce.xn--ba-lmcq'\n```\n\n### `punycode.ucs2`\n\n#### `punycode.ucs2.decode(string)`\n\nCreates an array containing the numeric code point values of each Unicode symbol in the string. While [JavaScript uses UCS-2 internally](https://mathiasbynens.be/notes/javascript-encoding), this function will convert a pair of surrogate halves (each of which UCS-2 exposes as separate characters) into a single code point, matching UTF-16.\n\n```js\npunycode.ucs2.decode('abc');\n// → [0x61, 0x62, 0x63]\n// surrogate pair for U+1D306 TETRAGRAM FOR CENTRE:\npunycode.ucs2.decode('\\uD834\\uDF06');\n// → [0x1D306]\n```\n\n#### `punycode.ucs2.encode(codePoints)`\n\nCreates a string based on an array of numeric code point values.\n\n```js\npunycode.ucs2.encode([0x61, 0x62, 0x63]);\n// → 'abc'\npunycode.ucs2.encode([0x1D306]);\n// → '\\uD834\\uDF06'\n```\n\n### `punycode.version`\n\nA string representing the current Punycode.js version number.\n\n## Unit tests & code coverage\n\nAfter cloning this repository, run `npm install --dev` to install the dependencies needed for Punycode.js development and testing. You may want to install Istanbul _globally_ using `npm install istanbul -g`.\n\nOnce that’s done, you can run the unit tests in Node using `npm test` or `node tests/tests.js`. To run the tests in Rhino, Ringo, Narwhal, PhantomJS, and web browsers as well, use `grunt test`.\n\nTo generate the code coverage report, use `grunt cover`.\n\nFeel free to fork if you see possible improvements!\n\n## Author\n\n| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias \"Follow @mathias on Twitter\") |\n|---|\n| [Mathias Bynens](https://mathiasbynens.be/) |\n\n## Contributors\n\n| [![twitter/jdalton](https://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](https://twitter.com/jdalton \"Follow @jdalton on Twitter\") |\n|---|\n| [John-David Dalton](http://allyoucanleet.com/) |\n\n## License\n\nPunycode.js is available under the [MIT](https://mths.be/mit) license.\n",
  119. "readmeFilename": "README.md",
  120. "repository": {
  121. "type": "git",
  122. "url": "git+https://github.com/bestiejs/punycode.js.git"
  123. },
  124. "scripts": {
  125. "test": "node tests/tests.js"
  126. },
  127. "version": "1.4.1"
  128. }