
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
linz-log-generator
Advanced tools
just generate log from curl code, we could define generate rule for our log.
npm install --save linz-log-generator
const logGenerator = require('linz-log-generator')
var ipUtils = logGenerator.utils
var demoRule = { /* ... config rule ... */ }
var generateLogFromCurl = logGenerator.generateLogFromCurl
var sampleCurl = "curl 'http://test-va.sample.com/va.gif?cat=52&s=3&ver=3&n=66938233&ch=ch1&proj=proj2&br=&rs=854x480&lang=zh-CN&dr=0&y=0&x=0&sdk=dev&bu=videoos&bu-ser=2.0&a=H1PG9rNCl&v=v3&c=cc&tag=t4&dg=d5' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: zh-CN,zh;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3188.2 Safari/537.36' -H 'Accept: image/webp,image/apng,image/*,*/*;q=0.8' -H 'Referer: http://www.qq.com' -H 'Connection: keep-alive' --compressed"
const resultLog = generateLogFromCurl('127.0.0.1', sampleCurl, demoRule)
console.log(resultLog)
/// output
"2017-08-23T09:06:31.443Z 3 52 3 127.0.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3188.2 Safari/537.36 http://www.qq.com v3 t4 zh-CN proj2"
配置文件参看: config/demoRule.js
FAQs
parse or generate linz log for developer
The npm package linz-log-generator receives a total of 1 weekly downloads. As such, linz-log-generator popularity was classified as not popular.
We found that linz-log-generator 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
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.