
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
tclogformat
Advanced tools
Stringify objects into searchable strings.
JSON is a great format for exchanging data, but it isn't so great for logging. Say I want to log the follow user request object:
{
date: '2015-11-19',
client: {
agent: 'firefox',
ip: '10.1.32.1'
},
server: {
ip: '192.168.2.222'
}
}
If I use the traditional JSON.stringify()
, I get something like this:
{"date":"2015-11-19","client":{"agent":"firefox","ip":"10.1.32.1"},"server":{"ip":"192.168.2.222"}}
That isn't very readable and hard to grep.
This library solves those problems by nicely formatting objects as key=value
pairs:
date=2015-11-19 client.agent=firefox client.ip=10.1.32.1 server.ip=192.168.2.222
npm install --save tclogformat
Parameters:
any
anything you wish to stringify... booleans, strings, numbers, objects, arrays, etc.Returns:
var tclogformat = require('tclogformat');
var fs = require('fs');
console.log(tclogformat(fs.statSync('/dev/null')));
// -> 'dev=6 mode=8630 nlink=1 uid=0 gid=0 rdev=259 blksize=4096 ino=1029 size=0 blocks=0 atime=2017-07-12T00:21:34-04:00 mtime=2017-07-12T00:21:34-04:00 ctime=2017-07-12T00:21:34-04:00 birthtime=2017-07-12T00:21:34-04:00'
There is an automated test suite:
npm test
See LICENSE.md
FAQs
stringify objects into searchable strings
The npm package tclogformat receives a total of 19 weekly downloads. As such, tclogformat popularity was classified as not popular.
We found that tclogformat demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.