
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
A Vue digital display component that simulates an LCD dot matrix display.
A Vue digital display component that simulates an LCD dot matrix display.
The name of font used in this component is 'Let's go Digital Regular'.
npm install led-number
// or install from github reponsitory
npm install https://github.com/ferrinweb/led-number.git
// or use yarn / 推荐使用 yarn
yarn add led-number
// or install from github reponsitory
yarn add https://github.com/ferrinweb/led-number.git
// global import / 全局引入
import LedNumber from 'led-number'
Vue.use(LedNumber)
// import on demand in your vue component file. / 按需引入
import LedNumber from 'led-number'
export default {
components: {
LedNumber
},
...
}
You can ckeckout this repository and try this demo.
你可以直接检出 led-number 源码到本地,查看示例。
<template>
<div id="app">
<led-number class="price" :value="number" :toFixed="2" :toLocale="true"></led-number>
</div>
</template>
<script>
import LedNumber from './lib/led-number'
export default {
name: 'App',
components: {
LedNumber
},
data () {
return {
number: 3100
}
}
}
</script>
<style>
/* demo page styles, just ignore these */
html, body, #app {
margin: 0;
width: 100%;
height: 100%;
}
#app {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
</style>
名称 | 说明 | 默认值 |
---|---|---|
value | number to show | |
toFixed | number of decimal digits | 2 |
toLocale | if format the number using the toLocaleString method | false |
MIT Lisence.
FAQs
A Vue digital display component that simulates an LCD dot matrix display.
The npm package led-number receives a total of 1 weekly downloads. As such, led-number popularity was classified as not popular.
We found that led-number 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.