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

bundle-me

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bundle-me - npm Package Compare versions

Comparing version 1.1.0 to 1.1.2

bundle-me.js

8

package.json
{
"name": "bundle-me",
"version": "1.1.0",
"version": "1.1.2",
"description": "Bundles all the files inside the directory",

@@ -22,6 +22,6 @@ "main": "src/index.js",

"devDependencies": {
"chai": "~3",
"jshint": "^2.9.6",
"mocha": "~5",
"chai": "~3"
"mocha": "~5"
}
}
}

@@ -1,2 +0,2 @@

# bundle-me [![Build Status](https://travis-ci.org/ajay2507/bundle-me.svg?branch=master)](https://travis-ci.org/ajay2507/bundle-me)
# bundle-me [![Build Status](https://travis-ci.org/pajaydev/bundle-me.svg?branch=master)](https://travis-ci.org/pajaydev/bundle-me)

@@ -58,2 +58,3 @@

## Example
https://github.com/pajaydev/bundle-me/tree/master/example

@@ -60,0 +61,0 @@ ## License

@@ -19,2 +19,3 @@ 'use strict';

const files = getFiles(sourcePath);
console.log(files);
files.forEach(file => {

@@ -58,5 +59,8 @@ if (fs.statSync(file).isDirectory()) {

// get all the file names in the given directory
const getFiles = (sourcePath) => {
return fs.readdirSync(sourcePath).map(file => join(sourcePath, file))
if (fs.statSync(sourcePath).isDirectory()) {
return fs.readdirSync(sourcePath).map(file => join(sourcePath, file))
}
return [sourcePath];
};

@@ -63,0 +67,0 @@

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