New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

yzb-tools

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yzb-tools

提供了格式化时间,HTMLEscape的功能

latest
npmnpm
Version
1.0.0
Version published
Maintainers
0
Created
Source

工具库

安装

npm install yzb-tools

导入

const tools = require('yzb-tools')

格式化时间

const dt = tools.dateFormat(new Date())
console.log(dt);

转义HTML字符串

const str = tools.htmlEscape('<h1>你好啊</h1>')
console.log(str);

还原HTML字符串

const str = tools.htmlUnEscape('&lt;h1&gt;你好啊&lt;/h1&gt;')
console.log(str);

开源协议

  • ISC

Keywords

tools

FAQs

Package last updated on 04 Aug 2025

Did you know?

Socket

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.

Install

Related posts