Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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 0 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.