package.json 4.17 KB
Newer Older
Muddsair Sharif's avatar
Muddsair Sharif committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
  "_args": [
    [
      {
        "raw": "buffer-writer@1.0.1",
        "scope": null,
        "escapedName": "buffer-writer",
        "name": "buffer-writer",
        "rawSpec": "1.0.1",
        "spec": "1.0.1",
        "type": "version"
      },
      "C:\\Users\\Giuliano\\Desktop\\nasaproject\\node_modules\\pg"
    ]
  ],
  "_from": "buffer-writer@1.0.1",
  "_id": "buffer-writer@1.0.1",
  "_inCache": true,
  "_location": "/buffer-writer",
  "_nodeVersion": "5.5.0",
  "_npmOperationalInternal": {
    "host": "packages-5-east.internal.npmjs.com",
    "tmp": "tmp/buffer-writer-1.0.1.tgz_1455554615929_0.2564993395935744"
  },
  "_npmUser": {
    "name": "brianc",
    "email": "brian.m.carlson@gmail.com"
  },
  "_npmVersion": "3.3.12",
  "_phantomChildren": {},
  "_requested": {
    "raw": "buffer-writer@1.0.1",
    "scope": null,
    "escapedName": "buffer-writer",
    "name": "buffer-writer",
    "rawSpec": "1.0.1",
    "spec": "1.0.1",
    "type": "version"
  },
  "_requiredBy": [
    "/pg"
  ],
  "_resolved": "https://registry.npmjs.org/buffer-writer/-/buffer-writer-1.0.1.tgz",
  "_shasum": "22a936901e3029afcd7547eb4487ceb697a3bf08",
  "_shrinkwrap": null,
  "_spec": "buffer-writer@1.0.1",
  "_where": "C:\\Users\\Giuliano\\Desktop\\nasaproject\\node_modules\\pg",
  "author": {
    "name": "Brian M. Carlson"
  },
  "bugs": {
    "url": "https://github.com/brianc/node-buffer-writer/issues"
  },
  "dependencies": {},
  "description": "a fast, efficient buffer writer",
  "devDependencies": {
    "async": "~0.2.6",
    "bench": "~0.3.5",
    "benchmark": "~1.0.0",
    "cloned": "0.0.1",
    "microtime": "~0.3.3",
    "mocha": "~1.8.1",
    "okay": "0.0.2",
    "rmdir": "~1.0.0"
  },
  "directories": {},
  "dist": {
    "shasum": "22a936901e3029afcd7547eb4487ceb697a3bf08",
    "tarball": "https://registry.npmjs.org/buffer-writer/-/buffer-writer-1.0.1.tgz"
  },
  "gitHead": "d7c48cb142d87d76662954359bf1abcd25144329",
  "homepage": "https://github.com/brianc/node-buffer-writer#readme",
  "keywords": [
    "buffer",
    "writer",
    "builder"
  ],
  "license": "MIT",
  "main": "index.js",
  "maintainers": [
    {
      "name": "brianc",
      "email": "brian.m.carlson@gmail.com"
    }
  ],
  "name": "buffer-writer",
  "optionalDependencies": {},
  "readme": "# buffer-writer\n\n[![Build Status](https://secure.travis-ci.org/brianc/node-buffer-writer.png?branch=master)](http://travis-ci.org/brianc/node-buffer-writer)\n\nFast & efficient buffer writer used to keep memory usage low by internally recycling a single large buffer.\n\nUsed as the binary protocol writer in [node-postgres](https://github.com/brianc/node-postgres)\n\nSince postgres requires big endian encoding, this only writes big endian numbers for now, but can & probably will easily be extended to write little endian as well.\n\nI'll admit this has a few postgres specific things I might need to take out in the future, such as `addHeader`\n\n## api\n\n`var writer = new (require('buffer-writer')());`\n\n### writer.addInt32(num)\n\nWrites a 4-byte big endian binary encoded number to the end of the buffer.\n\n### writer.addInt16(num)\n\nWrites a 2-byte big endian binary encoded number to the end of the buffer.\n\n### writer.addCString(string)\n\nWrites a string to the buffer `utf8` encoded and adds a null character (`\\0`) at the end.\n\n### var buffer = writer.addHeader(char)\n\nWrites the 5 byte PostgreSQL required header to the beginning of the buffer. (1 byte for character, 1 BE Int32 for length of the buffer)\n\n### var buffer = writer.join()\n\nCollects all data in the writer and joins it into a single, new buffer.\n\n### var buffer = writer.flush(char)\n\nWrites the 5 byte postgres required message header, collects all data in the writer and joins it into a single, new buffer, and then resets the writer.\n\n## thoughts\n\nThis is kind of node-postgres specific.  If you're interested in using this for a more general purpose thing, lemme know.\nI would love to work with you on getting this more reusable for your needs.\n\n## license\n\nMIT\n",
  "readmeFilename": "README.md",
  "repository": {
    "type": "git",
    "url": "git://github.com/brianc/node-buffer-writer.git"
  },
  "scripts": {
    "test": "mocha"
  },
  "version": "1.0.1"
}