
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
array-normalize
Advanced tools
Normalize array (possibly n-dimensional) to zero mean and unit variance
Normalize array to unit length, that is 0..1 range. See feature scaling.
const normalize = require('array-normalize')
normalize([0, 50, 100]) // [0, .5, 1]
normalize([0, 0, .1, .2, 1, 2], 2) // [0, 0, .1, .1, 1, 1]
normalize([0, .25, 1, .25], 2, [0, .5, 1, .5]) // [0, .5, 1, .5])
Normalizes n-dimensional array in-place using optional stride for n-dimensions, ie. for 2d data layout is [x, y, x, y, ...]
.
Every dimension is normalized independently, eg. 2d array is normalized to unit square [0, 0, 1, 1]
.
Optional bounds
box can predefine min/max to skip bounds detection.
ॐ
FAQs
Normalize array (possibly n-dimensional) to zero mean and unit variance
The npm package array-normalize receives a total of 217,632 weekly downloads. As such, array-normalize popularity was classified as popular.
We found that array-normalize 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.