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

require-tree

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

require-tree - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

test/dot-in-foldername/1.0.0/v1.js

2

index.js

@@ -61,3 +61,3 @@ // require-tree

if (isDirectory(fpath)) {
tree[name] = require_tree(fpath, options)
tree[file] = require_tree(fpath, options)
return

@@ -64,0 +64,0 @@ }

{
"name": "require-tree",
"description": "require() whole directory trees",
"version": "0.3.2",
"version": "0.3.3",
"main": "index.js",

@@ -25,7 +25,11 @@ "dependencies": {},

"tree",
"api",
"multiple",
"paths",
"nested",
"folders",
"directory",
"directories"
"directories",
"loader",
"api"
]
}

@@ -23,2 +23,8 @@

var VERSIONED = {
'1.0.0': {
v1: 'success'
}
}
describe('when given a file tree', function(){

@@ -38,2 +44,11 @@

describe('folder name', function() {
it('should be mapped as named in filesystem', function(){
var versioned = require_tree('./dot-in-foldername')
assert.deepEqual(versioned, VERSIONED)
});
})
describe('paths', function(){

@@ -40,0 +55,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