Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
aspecter
Advanced tools
Readme
A utility module for Node & Browser that calculates aspect ratio and decimal fraction based on width and height and alongside provides normalized aspect.
The normalizedAspect
result contains information for intended aspect ratio of that resolution.
Many film/video creators do rendering at some weird resolutions, so normalized aspect will be the intended choice.
npm i aspecter
yarn add aspecter
You may hard-code width/height or grab it from some source. (e.g. video, image)
If you have some weird resolution, normalizedAspect
should be what you're actually looking for.
TypeScript
import { aspecter } from 'aspecter'
const aspecterResult = aspecter(1280, 536)
Node
const { aspecter } = require('aspecter')
const aspecterResult = aspecter(1280, 536)
Browser
<!-- PENDING CDN SUBMISSIONS -->
<script src="path/to/aspecter.js"></script>
<script>
const aspecterResult = aspecter(1280, 536)
</script>
Same resolution was used in all examples above, so the result will be the same.
// -- console.log output --
{
resolution: [1280, 536],
originalAspect: {
ratio: [160, 67],
decimal: 2.38
},
normalizedAspect: {
ratio: [21, 9],
decimal: 2.33
}
}
FAQs
A utility module for Node & Browser that calculates aspect ratio and decimal fraction based on width and height and alongside provides normalized aspect.
The npm package aspecter receives a total of 3 weekly downloads. As such, aspecter popularity was classified as not popular.
We found that aspecter 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.