
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
digital-display
Advanced tools
Javascript library to draw 7-segment displays
This example in plunker: demo/index.html
2.1 digital-display.js and digital-display.min.js are under dist folder.
2.2 Include digital-display.js or digital-display.min.js, e.g.
<head>
...
<link rel="stylesheet" href="../dist/digital-display.css">
<script src="../dist/digital-display.js"></script>
</head>
Just use it inside your javascript code this way:
<script>
var dd1 = new DigitalDisplay("00:00:00", {
el: null,
x: 0,
y: 0
});
dd1.displayText("88:88 88");
var w = dd1.getWidth();
var h = dd1.getHeight();
var dd2 = new DigitalDisplay("00:00", {
el: null,
x: 20,
y: 200,
baseUnit: 5
});
var dd3 = new DigitalDisplay("abcdef", {
el: null,
x: 20,
y: 400,
baseUnit: 5
});
var dd4 = new DigitalDisplay("00:00:00", {
el: "greenBox",
x: 10,
y: 10,
class: "mio",
width: 100
})
<script>
digital-display.js is MIT licensed.
FAQs
Javascript library to draw 7-segment displays
The npm package digital-display receives a total of 1 weekly downloads. As such, digital-display popularity was classified as not popular.
We found that digital-display 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
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.