-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathtst.js
More file actions
27 lines (26 loc) · 1.58 KB
/
tst.js
File metadata and controls
27 lines (26 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
let express = require('express');
let app = express();
app.get("/some/path", (req, res) => {
util.format(req.query.format, arg); // $ Alert
require('util').format(req.query.format, arg); // $ Alert
console.log(req.query.format, arg); // $ Alert
console.error(req.query.format, arg); // $ Alert
console.info(req.query.format, arg); // $ Alert
util.log(req.query.format, arg); // $ Alert
util.formatWithOptions(opts, req.query.format, arg); // $ Alert
require('printf')(req.query.format, arg); // $ Alert
require('printf')(write_stream, req.query.format, arg); // $ Alert
require('printj').sprintf(req.query.format, arg); // $ Alert
require('printj').vsprintf(req.query.format, arg); // $ Alert
require('format-util')(req.query.format, arg); // $ Alert
require('string-template')(req.query.format, arg); // $ Alert
require('string-template/compile')(req.query.format, arg); // $ Alert
util.format(req.query.format);
console.debug(req.query.format, arg); // $ Alert
console.warn(req.query.format, arg); // $ Alert
console.trace(req.query.format, arg); // $ Alert
console.assert(false, req.query.format);
console.assert(false, req.query.format, arg); // $ Alert
require("sprintf-js").sprintf(req.query.format, arg); // $ Alert
require("sprintf-js").vsprintf(req.query.format, args); // $ Alert
});