/usr/lib/nodejs/package-preamble/bin/preamble is in node-package-preamble 0.1.0-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #!/usr/bin/env node
var os = require("os"),
fs = require("fs");
fs.readFile("package.json", "utf8", function(error, text) {
if (error) throw error;
var json = JSON.parse(text);
process.stdout.write("// " + (json.homepage || json.name)
+ " Version " + json.version + "."
+ " Copyright " + (new Date).getFullYear()
+ " " + json.author.name + (/\.$/.test(json.author.name) ? "" : ".")
+ os.EOL);
});
|