PATH:
opt
/
bitninja-threat-hunting
/
node_modules
/
logform
'use strict'; const { MESSAGE } = require('triple-beam'); class Printf { constructor(templateFn) { this.template = templateFn; } transform(info) { info[MESSAGE] = this.template(info); return info; } } /* * function printf (templateFn) * Returns a new instance of the printf Format that creates an * intermediate prototype to store the template string-based formatter * function. */ module.exports = opts => new Printf(opts); module.exports.Printf = module.exports.Format = Printf;
[-] metadata.js
[edit]
[-] .gitattributes
[edit]
[-] json.js
[edit]
[-] label.js
[edit]
[-] tsconfig.json
[edit]
[-] errors.js
[edit]
[-] timestamp.js
[edit]
[+]
..
[-] combine.js
[edit]
[-] index.d.ts
[edit]
[+]
node_modules
[-] pad-levels.js
[edit]
[-] package.json
[edit]
[-] splat.js
[edit]
[-] align.js
[edit]
[-] logstash.js
[edit]
[-] .eslintrc
[edit]
[-] simple.js
[edit]
[-] browser.js
[edit]
[-] ms.js
[edit]
[-] index.js
[edit]
[-] .babelrc
[edit]
[-] format.js
[edit]
[-] printf.js
[edit]
[-] pretty-print.js
[edit]
[-] uncolorize.js
[edit]
[-] README.md
[edit]
[+]
examples
[+]
dist
[-] colorize.js
[edit]
[-] levels.js
[edit]
[-] cli.js
[edit]
[-] LICENSE
[edit]
[-] CHANGELOG.md
[edit]