Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
#!/usr/bin/env node |
| 2 |
|
| 3 |
var os = require("os"), |
| 4 |
fs = require("fs"); |
| 5 |
|
| 6 |
fs.readFile("package.json", "utf8", function(error, text) { |
| 7 |
if (error) throw error; |
| 8 |
var json = JSON.parse(text); |
| 9 |
process.stdout.write("// " + (json.homepage || json.name) |
| 10 |
+ " Version " + json.version + "." |
| 11 |
+ " Copyright " + (new Date).getFullYear() |
| 12 |
+ " " + json.author.name + (/\.$/.test(json.author.name) ? "" : ".") |
| 13 |
+ os.EOL); |
| 14 |
}); |