Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mapbox/bundle-fairy

Package Overview
Dependencies
Maintainers
14
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox/bundle-fairy - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0-dev1

2

index.js

@@ -204,3 +204,3 @@ var fs = require('fs');

if (err) { throw err; }
var buf = new Buffer(2);
var buf = new Buffer.alloc(2);
fs.read(fd, buf, 0, 2, 0, function(err, bytes_read, data) {

@@ -207,0 +207,0 @@ if (err) { return callback(err); }

{
"name": "@mapbox/bundle-fairy",
"version": "0.1.0",
"version": "0.2.0-dev1",
"description": "Check if ZIP is a bundle and extract",

@@ -30,3 +30,3 @@ "main": "index.js",

"minimist": "^1.2.0",
"zipfile": "^0.5.9",
"zipfile": "^0.5.12",
"mkdirp": "^0.5.1",

@@ -33,0 +33,0 @@ "rimraf": "^2.5.2"

@@ -50,8 +50,8 @@ # bundle-fairy

#### check if a file is a bundle, `isBundle()`
#### check if a file is a bundle, `isbundle()`
```javascript
fairy.isBundle('./path/to/file.zip', function(err, isbundle) {
fairy.isbundle('./path/to/file.zip', function(err, isbundle) {
if (err) throw err;
console.log(isbundle); // true! or false :(
console.log(isbundle); // `true` or `false`
});

@@ -58,0 +58,0 @@ ```

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc