Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
nuke-iconfont
Advanced tools
Iconfont 是与 web iconfont 类似的能力,用于设置 iconfont。
Iconfont 资源可以从 iconfont.cn 等多个平台导出。
本组件目前只支持单色的 ttf 文件,暂不支持 svg 格式。
注意 Weex 容器内,如果 iconfont 资源如果从远程拉取,可能会存在首次渲染无法成功的情况,如果对 icon 展现要求较高,请使用图片,或实现客户端对字体资源预加载 (或客户端预置),以避免出现此问题。
Iconfont({
name: 'your-unique-font-name',
url: 'https://at.alicdn.com/t/font_1474198576_7440977.ttf'
});
// \u 写法,code 需为变量
const code = '\ue60f';
<Text style={{ fontSize: 40, fontFamily: 'your-unique-font-name' }}>{code}</Text>;
// 或者不用任何变量
<Text style={{ fontSize: 40, fontFamily: 'your-unique-font-name' }}></Text>;
ttf
与 woff
格式const { formatUnicode } = Iconfont;
formatUnicode(''); //\ue600
用于将 unicode 转换为 weex 和 H5 同时能够使用的实体字符格式;
FAQs
iconfont
The npm package nuke-iconfont receives a total of 26 weekly downloads. As such, nuke-iconfont popularity was classified as not popular.
We found that nuke-iconfont demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.