Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@adityapurwa/starflies
Advanced tools
Add starflies to a website.
Because starry night is beautiful.
https://thatskywish.netlify.app
$ npm install --save @adityapurwa/starflies
const starflies = require('@adityapurwa/starflies');
document.addEventListener('DOMContentLoaded', () => {
starflies();
});
Call the starflies([stars], [background])
function to attach the starflies effect to the current page.
The stars to be rendered.
Default:
[
...generateStars(70),
...generateStars(100, 2, 0.1, 0.1),
...generateStars(400, 1, 0.1, 0.05),
]
By default, it generates three layers of stars with various sizes to simulate a Parallax effect.
The array of stars that will be rendered, you can use the #generateStars function to generate the stars.
The background color of the canvas.
Default: #1b1f33
Generate stars based on the given parameters.
count
- The number of stars to generate.minSize
- The minimum size of the stars.maxSize
- The maximum size of the stars.maxVelocity
- The maximum velocity of the stars.Attach the starflies effect to the current page.
stars
- The stars to be rendered.background
- The background color of the canvas.MIT © Aditya Purwa
FAQs
Add starflies to a website
We found that @adityapurwa/starflies 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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.