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

e0_package

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

e0_package

自定义npm包——用于开发测试

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

安装


npm install self_package

导入


const self_package = require('self_package')

使用方法


//时间格式化方法
const date = self_package.dateFormat(new Date())

//转义html方法
const html = '<h1 class="h1">这是&nbsp;标签</h1>' 
const get_htmlstr = self_package.htmlEscape(html))

//还原html方法
const htmlstr = '&lt;h1 class=&quot;h1&quot;&gt;这是&amp;nbsp;标签&lt;/h1&gt;' 
const get_html = self_package.htmlUnEscape(htmlstr))

开源协议

ISC

Keywords

e0_package

FAQs

Package last updated on 27 Mar 2022

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