Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
一个网页页面显示控制台打印日志,并格式化显示的js库.
很多页面效果和js逻辑,在电脑开发时,正常显示与正常运行,但是到很多手机上就无法支持,开发人员又无法获取报错信息,给移动开发带来了极大的不便.有了Mlog,网页开发可以不用F12, 就可以直接查看控制台打印的日志,大大方便了前端开发和调试,尤其是在无法查看控制台的移动端,微信端.
预览网址:https://mlog.nongshiye.com
软件采用es6开发,gulp 打包
①引入js文件
②初始化Mlog
③在需要显示调试器时调用mlog.show()
方法或者getMlog().show()
即可
Mlog只会初始化一次,重置执行new Mlog();
只会实例化一次
Mlog实例化之后,可以动过getMlog()
方法获得Mlog实例
请尽量避免生产环境使用Mlog打印敏感信息,以防信息泄露;同时,提高.show()
方法调用的门槛,防止用户误触发
Mlog实例化后提供几个简单API可用调用
返回Mlog实例
显示调试器
关闭调试器
FAQs
client2 for wechat mp
The npm package mp2heel receives a total of 2 weekly downloads. As such, mp2heel popularity was classified as not popular.
We found that mp2heel demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.