package.json 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {
  2. "_args": [
  3. [
  4. {
  5. "raw": "stringstream@~0.0.4",
  6. "scope": null,
  7. "escapedName": "stringstream",
  8. "name": "stringstream",
  9. "rawSpec": "~0.0.4",
  10. "spec": ">=0.0.4 <0.1.0",
  11. "type": "range"
  12. },
  13. "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/request"
  14. ]
  15. ],
  16. "_from": "stringstream@>=0.0.4 <0.1.0",
  17. "_id": "stringstream@0.0.5",
  18. "_inCache": true,
  19. "_location": "/stringstream",
  20. "_nodeVersion": "4.2.1",
  21. "_npmUser": {
  22. "name": "hichaelmart",
  23. "email": "michael.hart.au@gmail.com"
  24. },
  25. "_npmVersion": "2.14.8",
  26. "_phantomChildren": {},
  27. "_requested": {
  28. "raw": "stringstream@~0.0.4",
  29. "scope": null,
  30. "escapedName": "stringstream",
  31. "name": "stringstream",
  32. "rawSpec": "~0.0.4",
  33. "spec": ">=0.0.4 <0.1.0",
  34. "type": "range"
  35. },
  36. "_requiredBy": [
  37. "/request"
  38. ],
  39. "_resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz",
  40. "_shasum": "4e484cd4de5a0bbbee18e46307710a8a81621878",
  41. "_shrinkwrap": null,
  42. "_spec": "stringstream@~0.0.4",
  43. "_where": "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/request",
  44. "author": {
  45. "name": "Michael Hart",
  46. "email": "michael.hart.au@gmail.com",
  47. "url": "http://github.com/mhart"
  48. },
  49. "bugs": {
  50. "url": "https://github.com/mhart/StringStream/issues"
  51. },
  52. "dependencies": {},
  53. "description": "Encode and decode streams into string streams",
  54. "devDependencies": {},
  55. "directories": {},
  56. "dist": {
  57. "shasum": "4e484cd4de5a0bbbee18e46307710a8a81621878",
  58. "tarball": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz"
  59. },
  60. "gitHead": "1efe3bf507bf3a1161f8473908b60e881d41422b",
  61. "homepage": "https://github.com/mhart/StringStream#readme",
  62. "keywords": [
  63. "string",
  64. "stream",
  65. "base64",
  66. "gzip"
  67. ],
  68. "license": "MIT",
  69. "main": "stringstream.js",
  70. "maintainers": [
  71. {
  72. "name": "hichaelmart",
  73. "email": "michael.hart.au@gmail.com"
  74. }
  75. ],
  76. "name": "stringstream",
  77. "optionalDependencies": {},
  78. "readme": "# Decode streams into strings The Right Way(tm)\n\n```javascript\nvar fs = require('fs')\nvar zlib = require('zlib')\nvar strs = require('stringstream')\n\nvar utf8Stream = fs.createReadStream('massiveLogFile.gz')\n .pipe(zlib.createGunzip())\n .pipe(strs('utf8'))\n```\n\nNo need to deal with `setEncoding()` weirdness, just compose streams\nlike they were supposed to be!\n\nHandles input and output encoding:\n\n```javascript\n// Stream from utf8 to hex to base64... Why not, ay.\nvar hex64Stream = fs.createReadStream('myFile')\n .pipe(strs('utf8', 'hex'))\n .pipe(strs('hex', 'base64'))\n```\n\nAlso deals with `base64` output correctly by aligning each emitted data\nchunk so that there are no dangling `=` characters:\n\n```javascript\nvar stream = fs.createReadStream('myFile').pipe(strs('base64'))\n\nvar base64Str = ''\n\nstream.on('data', function(data) { base64Str += data })\nstream.on('end', function() {\n console.log('My base64 encoded file is: ' + base64Str) // Wouldn't work with setEncoding()\n console.log('Original file is: ' + new Buffer(base64Str, 'base64'))\n})\n```\n",
  79. "readmeFilename": "README.md",
  80. "repository": {
  81. "type": "git",
  82. "url": "git+https://github.com/mhart/StringStream.git"
  83. },
  84. "scripts": {},
  85. "version": "0.0.5"
  86. }