Security News
Supply Chain Attack Detected in @solana/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.
@mapbox/bundle-fairy
Advanced tools
Detect bundles of geometry.
A bundle is a compressed (zipped .zip
) directory containing either:
Bunldes are used as an in-between format for two cases:
A bundle MUST include:
.zip
extension.geojson
or .csv
)A bundle MAY include:
.index
)metadata.json
file, which is exactly the output of mapnik-omnivore
A bundle MAY NOT include:
.geojson
AND a .csv
)geojson
or csv
npm install @mapbox/bundle-fairy
var fairy = require('@mapbox/bundle-fairy');
isbundle()
fairy.isbundle('./path/to/file.zip', function(err, isbundle) {
if (err) throw err;
console.log(isbundle); // `true` or `false`
});
extract()
fairy.extract('./path/to/file.zip', function(err, result) {
if (err) throw err;
console.log(result); // comma separated list of files within the bundle
});
You can pass in the dirname
option to just get the full directory path back:
fairy.extract('./path/to/file.zip', { dirname: true }, function(err, result) {
if (err) throw err;
console.log(result); // /User/waka/files/tmp-bundle
});
Check if is bundle
$ bundle-fairy isbundle <zipfile>
Extract bundle
$ bundle-fairy extract <zipfile>
$ bundle-fairy extract <zipfile> --dirname # returns just directory name
npm test
¯\_(ツ)_/¯
FAQs
Check if ZIP is a bundle and extract
The npm package @mapbox/bundle-fairy receives a total of 0 weekly downloads. As such, @mapbox/bundle-fairy popularity was classified as not popular.
We found that @mapbox/bundle-fairy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 108 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.