Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
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.
If the folger argument (sprites
in the example above) is omitted, the project will be created in the current directory.
$ 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
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.