{
  "name": "string2compact",
  "description": "Convert 'hostname:port' strings to BitTorrent's compact ip/host binary returned by Trackers",
  "version": "1.1.1",
  "author": {
    "name": "Feross Aboukhadijeh",
    "email": "feross@feross.org",
    "url": "http://feross.org/"
  },
  "bugs": {
    "url": "https://github.com/feross/string2compact/issues"
  },
  "dependencies": {},
  "devDependencies": {
    "compact2string": "^1.2.0",
    "tape": "2.x"
  },
  "homepage": "https://github.com/feross/string2compact",
  "keywords": [
    "torrent",
    "compact",
    "tracker",
    "bittorrent",
    "peer-to-peer",
    "binary",
    "convert",
    "hostname",
    "port",
    "webtorrent"
  ],
  "license": "MIT",
  "main": "index.js",
  "repository": {
    "type": "git",
    "url": "git://github.com/feross/string2compact.git"
  },
  "scripts": {
    "test": "tape test/*.js"
  },
  "testling": {
    "files": "test/*.js",
    "browsers": [
      "ie/9..latest",
      "chrome/25..latest",
      "firefox/20..latest",
      "safari/6..latest",
      "opera/15.0..latest"
    ]
  },
  "readme": "# string2compact [![build](https://img.shields.io/travis/feross/string2compact.svg)](https://travis-ci.org/feross/string2compact) [![npm](https://img.shields.io/npm/v/string2compact.svg)](https://npmjs.org/package/string2compact) [![gittip](https://img.shields.io/gittip/feross.svg)](https://www.gittip.com/feross/)\n\n#### Convert 'hostname:port' strings to BitTorrent's compact ip/host binary returned by Trackers\n\n[![browser support](https://ci.testling.com/feross/string2compact.png)](https://ci.testling.com/feross/string2compact)\n\nThis module is the opposite of [compact2string](https://npmjs.org/package/compact2string). This works in the browser with [browserify](http://browserify.org/) and is used by [WebTorrent](http://webtorrent.io), specifically [bittorrent-tracker](https://github.com/feross/bittorrent-tracker).\n\n### install\n\n```\nnpm install string2compact\n```\n\n### usage\n\n#### single string2compact\n\n```js\nvar string2compact = require('string2compact')\nvar compact = string2compact('10.10.10.5:65408')\nconsole.log(compact) // new Buffer('0A0A0A05FF80', 'hex')\n```\n\n#### tranform multiple into one buffer\n\n```js\nvar compacts = string2compact([ '10.10.10.5:128', '100.56.58.99:28525' ])\nconsole.log(compacts) // new Buffer('0A0A0A05008064383a636f6d', 'hex')\n```\n\n### license\n\nMIT. Copyright (c) [Feross Aboukhadijeh](http://feross.org).\n",
  "readmeFilename": "README.md",
  "_id": "string2compact@1.1.1",
  "_shasum": "d1ca7a0f533b7c26dbe41596246c34809ab71397",
  "_from": "string2compact@^1.1.1",
  "_resolved": "https://registry.npmjs.org/string2compact/-/string2compact-1.1.1.tgz"
}
