package.json 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {
  2. "_args": [
  3. [
  4. "stringstream@~0.0.4",
  5. "/repo/combiclub.com/wwwroot/themes/combi/_grunt/node_modules/request"
  6. ]
  7. ],
  8. "_from": "stringstream@>=0.0.4 <0.1.0",
  9. "_id": "stringstream@0.0.4",
  10. "_inCache": true,
  11. "_location": "/stringstream",
  12. "_npmUser": {
  13. "email": "michael.hart.au@gmail.com",
  14. "name": "hichaelmart"
  15. },
  16. "_npmVersion": "1.2.0",
  17. "_phantomChildren": {},
  18. "_requested": {
  19. "name": "stringstream",
  20. "raw": "stringstream@~0.0.4",
  21. "rawSpec": "~0.0.4",
  22. "scope": null,
  23. "spec": ">=0.0.4 <0.1.0",
  24. "type": "range"
  25. },
  26. "_requiredBy": [
  27. "/request"
  28. ],
  29. "_resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.4.tgz",
  30. "_shasum": "0f0e3423f942960b5692ac324a57dd093bc41a92",
  31. "_shrinkwrap": null,
  32. "_spec": "stringstream@~0.0.4",
  33. "_where": "/repo/combiclub.com/wwwroot/themes/combi/_grunt/node_modules/request",
  34. "author": {
  35. "email": "michael.hart.au@gmail.com",
  36. "name": "Michael Hart",
  37. "url": "http://github.com/mhart"
  38. },
  39. "dependencies": {},
  40. "description": "Encode and decode streams into string streams",
  41. "devDependencies": {},
  42. "directories": {},
  43. "dist": {
  44. "shasum": "0f0e3423f942960b5692ac324a57dd093bc41a92",
  45. "tarball": "http://registry.npmjs.org/stringstream/-/stringstream-0.0.4.tgz"
  46. },
  47. "installable": true,
  48. "keywords": [
  49. "base64",
  50. "gzip",
  51. "stream",
  52. "string"
  53. ],
  54. "license": "MIT",
  55. "main": "stringstream.js",
  56. "maintainers": [
  57. {
  58. "name": "hichaelmart",
  59. "email": "michael.hart.au@gmail.com"
  60. }
  61. ],
  62. "name": "stringstream",
  63. "optionalDependencies": {},
  64. "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",
  65. "readmeFilename": "README.md",
  66. "repository": {
  67. "type": "git",
  68. "url": "https://github.com/mhart/StringStream.git"
  69. },
  70. "version": "0.0.4"
  71. }