{"_id":"argf","_rev":"6-b2a3b9b743f1bb2528f397ef5a648143","name":"argf","description":"Ruby's ARGF object for Node.","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"argf","version":"0.0.1","description":"Ruby's ARGF object for Node.","main":"index.js","scripts":{"test":"./node_modules/.bin/tap test/"},"repository":{"type":"git","url":"git://github.com/tokuhirom/node-argf.git"},"keywords":["ARGF","ruby"],"author":{"name":"Tokuhiro Matsuno"},"license":"MIT","directories":{"test":"test"},"dependencies":{},"devDependencies":{"tap":"~0.3.1"},"readme":"Ruby's ARGF for node.js\n=======================\n\nARGF is a stream designed for use in scripts that process files given as command-line arguments, or passed in via STDIN.\n\nARGF is very useful for comand line utilities.\n\nSYNOPSIS\n--------\n\n    var ARGF = require('./index.js');\n\n    var argf = new ARGF();\n    argf.forEach(function (line) {\n        process.stdout.write('LINE(' + (argf.stream.path || '-') + \") \" + line);\n    });\n\nCLASSES\n-------\n\n### ARGF\n\n#### var argf = new ARGF([Array files])\n\nCreate a new instance of ARGF. You can pass a argv by yourself.\nBy default, ARGF uses process.argv as a file list.\n\nIf files.length is 0, ARGF reads data from stdin.\n\n#### argf.forEach(function (line) { ... })\n\nThis iterates over each line.\n\n#### argf.forEachChar(function (line) { ... })\n\nThis iterates over each char.\n\n#### argf.stream\n\nCurrent stream object. You can get a current file path by `argf.stream.path`.\n\n#### argf.encoding\n\nThis is a file encoding. It's `utf-8` by default.\n\nLICENSE\n-------\n\nhttp://tokuhirom.mit-license.org/\n\n","_id":"argf@0.0.1","dist":{"shasum":"b28346b9f39192dfdcba7c7d479b7c83c3580a27","tarball":"https://registry.npmjs.org/argf/-/argf-0.0.1.tgz","integrity":"sha512-5MAiTuIEpVNXsqkde5cByyFdv7uR4muiHFraoOKck8BjpcYcvt/E5S9j7ijKwo8OQpK+nBCJEG0wV2FkBEV06A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKEpF5lXDbZzPL3RT7UHBAODxlUprQbH6hBd/0avYLiAIhANATGtZGL51ZqE5RMBlZCPEDxI36RslPr0mzF2w2+X67"}]},"_npmVersion":"1.1.49","_npmUser":{"name":"tokuhirom","email":"tokuhirom@gmail.com"},"maintainers":[{"name":"tokuhirom","email":"tokuhirom@gmail.com"}]}},"readme":"Ruby's ARGF for node.js\n=======================\n\nARGF is a stream designed for use in scripts that process files given as command-line arguments, or passed in via STDIN.\n\nARGF is very useful for comand line utilities.\n\nSYNOPSIS\n--------\n\n    var ARGF = require('./index.js');\n\n    var argf = new ARGF();\n    argf.forEach(function (line) {\n        process.stdout.write('LINE(' + (argf.stream.path || '-') + \") \" + line);\n    });\n\nCLASSES\n-------\n\n### ARGF\n\n#### var argf = new ARGF([Array files])\n\nCreate a new instance of ARGF. You can pass a argv by yourself.\nBy default, ARGF uses process.argv as a file list.\n\nIf files.length is 0, ARGF reads data from stdin.\n\n#### argf.forEach(function (line) { ... })\n\nThis iterates over each line.\n\n#### argf.forEachChar(function (line) { ... })\n\nThis iterates over each char.\n\n#### argf.stream\n\nCurrent stream object. You can get a current file path by `argf.stream.path`.\n\n#### argf.encoding\n\nThis is a file encoding. It's `utf-8` by default.\n\nLICENSE\n-------\n\nhttp://tokuhirom.mit-license.org/\n\n","maintainers":[{"name":"tokuhirom","email":"tokuhirom@gmail.com"}],"time":{"modified":"2022-06-13T03:26:09.309Z","created":"2012-09-03T00:51:27.057Z","0.0.1":"2012-09-03T00:51:30.269Z"},"author":{"name":"Tokuhiro Matsuno"},"repository":{"type":"git","url":"git://github.com/tokuhirom/node-argf.git"},"users":{"chocolateboy":true}}