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

load-module

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

load-module - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

1

load-module.js

@@ -39,2 +39,3 @@ 'use strict'

} else {
if (modulePath.startsWith('.')) modulePath = path.resolve(modulePath)
const pathsToTry = [

@@ -41,0 +42,0 @@ modulePath,

2

package.json
{
"name": "load-module",
"author": "Lloyd Brookes <75pound@gmail.com>",
"version": "0.2.0",
"version": "0.2.1",
"description": "load-module",

@@ -6,0 +6,0 @@ "repository": "https://github.com/75lb/load-module.git",

@@ -41,2 +41,8 @@ 'use strict'

runner.test('loadModule: relative path to a dir', function () {
const modulePath = path.resolve(__dirname, 'fixture/loadModule/some-module')
const module = loadModule(modulePath)
a.strictEqual(module.name, 'someModule')
})
runner.test('loadModule: full module name', function () {

@@ -43,0 +49,0 @@ const module = loadModule('array-back')

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