{
  "_id": "native-duplexpair",
  "maintainers": [
    {
      "name": "arthurschreiber",
      "email": "schreiber.arthur@googlemail.com"
    }
  ],
  "keywords": [
    "duplex",
    "pair",
    "streams",
    "socket"
  ],
  "dist-tags": {
    "latest": "1.0.0"
  },
  "author": {
    "name": "Anna Henningsen",
    "email": "anna@addaleax.net"
  },
  "_rev": "2-4e50d679e64144a900ea3ee25653418f",
  "description": "Make a full duplex stream with 2 Duplex endpoints, using the native version of `Duplex`",
  "readme": "duplexpair\n==============\n\n[![NPM Version](https://img.shields.io/npm/v/duplexpair.svg?style=flat)](https://npmjs.org/package/duplexpair)\n[![NPM Downloads](https://img.shields.io/npm/dm/duplexpair.svg?style=flat)](https://npmjs.org/package/duplexpair)\n[![Build Status](https://travis-ci.org/addaleax/duplexpair.svg?style=flat&branch=master)](https://travis-ci.org/addaleax/duplexpair?branch=master)\n[![Coverage Status](https://coveralls.io/repos/addaleax/duplexpair/badge.svg?branch=master)](https://coveralls.io/r/addaleax/duplexpair?branch=master)\n[![Dependency Status](https://david-dm.org/addaleax/duplexpair.svg?style=flat)](https://david-dm.org/addaleax/duplexpair)\n\nMake a full duplex stream with 2 Duplex endpoints.\n\n**Note:**\n\nThis is a fork of `duplexpair`, changed to use the \"native\" `Duplex` stream that is part\nof Node.JS instead of the version from the `readable-stream` package.\n\nInstall:\n`npm install native-duplexpair`\n\n```js\nconst DuplexPair = require('native-duplexpair');\n\nconst { socket1, socket2 } = new DuplexPair();\n\nsocket1.write('Hi');\nconsole.log(socket2.read());  // => <Buffer 48 69>\n\n// Or, using options that are passed to the Duplex constructor:\n\nconst { socket1, socket2 } = new DuplexPair({ encoding: 'utf8' });\n\nsocket1.write('Hi');\nconsole.log(socket2.read());  // => 'Hi'\n```\n\nLicense\n=======\n\nMIT\n",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/tediousjs/native-duplexpair.git"
  },
  "bugs": {
    "url": "https://github.com/tediousjs/native-duplexpair/issues"
  },
  "license": "MIT",
  "versions": {
    "1.0.0": {
      "name": "native-duplexpair",
      "version": "1.0.0",
      "description": "Make a full duplex stream with 2 Duplex endpoints, using the native version of `Duplex`",
      "engine": ">=4.0.0",
      "main": "index.js",
      "directories": {
        "test": "test"
      },
      "devDependencies": {
        "mocha": "^4.0.1",
        "nyc": "^11.3.0"
      },
      "scripts": {
        "test": "nyc mocha"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/tediousjs/native-duplexpair.git"
      },
      "keywords": [
        "duplex",
        "pair",
        "streams",
        "socket"
      ],
      "author": {
        "name": "Anna Henningsen",
        "email": "anna@addaleax.net"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/tediousjs/native-duplexpair/issues"
      },
      "homepage": "https://github.com/tediousjs/native-duplexpair#readme",
      "gitHead": "96f40bf5dd241dad69ad540054dfe33738682738",
      "_id": "native-duplexpair@1.0.0",
      "_shasum": "7899078e64bf3c8a3d732601b3d40ff05db58fa0",
      "_from": ".",
      "_npmVersion": "2.15.11",
      "_nodeVersion": "4.8.4",
      "_npmUser": {
        "name": "arthurschreiber",
        "email": "schreiber.arthur@googlemail.com"
      },
      "dist": {
        "shasum": "7899078e64bf3c8a3d732601b3d40ff05db58fa0",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/native-duplexpair/-/native-duplexpair-1.0.0.tgz",
        "fileCount": 8,
        "unpackedSize": 8288,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa9E1aCRA9TVsSAnZWagAASCsP/131rGG2KZob58ZeS0NP\nMSeX2IyMMHwu58Dfl2MsGU15oCg8bksvsCohwGegpqSAWvP/h3sl0d4Sw4qe\nE09PjOV5TCwZOLnTIx7aHTWeywGFUKxwz9ebkxAMCukiYVOo2nqfYhy7wcFr\nvjZowOU0Ol0C2RYtY24pCz7qe9YNDGnC0CHRu03IYmlVKgz4JsBaMXsKeTn2\nfnsGMPepR/cLDmw4dlsphpchKVpSOvDW/pWZRk3y6YKZwO+dVa3cE06XO/Km\nUDERAx8nNmxu2F3DGN+mhRJ6pZjERj12QqLiMlA36HddJ5a0Eni89nO/pY2y\nwx0n/2VXNJCPXfRXQPypNF0ggL2CMcpah8Y4LNh4Y4ILf0ZrV2T+WPFyMTqf\n9MVHN0mS649fuabikZKZK1vg7j3jI4VZilKw+MotvdimNRajk5gVGFSTU6FU\nzXs9o/3sZCtb6HVaUFEfTfWU2JC1ujMk14MvVvGpnf6DzA18fcai1+6SOJKB\nTOxv16tTE31so8uSQoaysK5wE/YN7ENunTsxXtqgczbzICxYf8MeNwlKac8o\nW2qfMJkibjfrPeBO29klfu3I7nF8nOo1p68XSZ1aw4y0TlMifQ8NCjE0Gs4y\n7f0xXUJKQGIgBciljDOdr2b9gYGUzqGQyU8tiHAk06tHvORLCGf7OCejAYoa\n0xyZ\r\n=Wbmw\r\n-----END PGP SIGNATURE-----\r\n",
        "integrity": "sha512-E7QQoM+3jvNtlmyfqRZ0/U75VFgCls+fSkbml2MpgWkWyz3ox8Y58gNhfuziuQYGNNQAbFZJQck55LHCnCK6CA==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQD1Unt9tI+HDJIalyCPnZNcsw8UGJl/ZMH8KDt/BNeA4wIgd6l6ssNqjuHQIiyB9RGkwtTu4g0MDBO42ZfaCFAfv8k="
          }
        ]
      },
      "maintainers": [
        {
          "name": "arthurschreiber",
          "email": "schreiber.arthur@googlemail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/native-duplexpair_1.0.0_1525960025280_0.8876847239991936"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "native-duplexpair",
  "time": {
    "created": "2018-05-10T13:47:05.280Z",
    "1.0.0": "2018-05-10T13:47:05.380Z",
    "modified": "2026-05-20T20:10:53.222Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/tediousjs/native-duplexpair#readme"
}