Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
create-sprite-tool
Advanced tools
This template creates a project for managing Mapbox spritesheets
$ npm create sprite-tool sprites
This will create a sprites
folder in the current working directory, with a set of tools for working with Mapbox spritesheets.
$ cd sprites
Once you're in the sprites directory, you can do the following:
This is done by using the
npm run import -- <sprite url>
syntax. Example:
$ npm run import -- https://kataster.bev.gv.at/styles/sprite
This will load https://kataster.bev.gv.at/styles/sprite.json, https://kataster.bev.gv.at/styles/sprite.png, https://kataster.bev.gv.at/styles/sprite@2x.json and https://kataster.bev.gv.at/styles/sprite@2x.png, and extract all png files from that spritesheet to the icons/
and icons2x/
folders.
To add SVG images, put the SVG files in the svg/
folder, and run
$ npm run svg
This will create png images from all SVGs in the svg/
folder and put them in the the icons/
and icons@2x/
folders, with the appropriate sizes.
To create a spritesheet from everything in the icons/
and icons@2x/
folders, run
$ npm run sprite
This will put the final spritesheet files (sprite.json
, sprite.png
, sprite@2x.json
, sprite@2x.png
) in the sprite
folder.
FAQs
Example starter template tool
The npm package create-sprite-tool receives a total of 7 weekly downloads. As such, create-sprite-tool popularity was classified as not popular.
We found that create-sprite-tool demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.