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

import-folder

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

import-folder - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

8

index.js

@@ -8,5 +8,11 @@ "use strict";

const fs_1 = __importDefault(require("fs"));
function getPathFromCallerFunction() {
}
const importFolder = (folder) => {
let modules = {};
let folderPath = path_1.default.join(__dirname, folder);
Error.prepareStackTrace;
// @ts-ignore
const caller = new Error().stack[1].receiver;
console.log(caller);
let folderPath = path_1.default.join(folder);
fs_1.default.readdirSync(folderPath).forEach((file) => {

@@ -13,0 +19,0 @@ let filePath = path_1.default.join(folderPath, file);

8

package.json
{
"name": "import-folder",
"version": "0.0.2",
"version": "0.0.3",
"description": "Import all exported modules from files in folder at once",

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

"scripts": {
"build": "tsc",
"build": "tsc && rm index.js && cp build/index.js index.js && yarn jest",
"test": "jest",

@@ -41,3 +41,5 @@ "coveralls": "jest --coverage && cat ./coverage/lcov.info | coveralls"

"homepage": "https://github.com/felipezarco/import-folder#readme",
"dependencies": {},
"dependencies": {
"import-folder": "^0.0.2"
},
"devDependencies": {

@@ -44,0 +46,0 @@ "@types/express": "^4.17.11",

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