Socket
Socket
Sign inDemoInstall

module-alias

Package Overview
Dependencies
0
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

4

package.json
{
"name": "module-alias",
"description": "Simple module for registering aliases of directories and custom module paths",
"version": "1.0.1",
"version": "1.0.2",
"author": {

@@ -10,3 +10,3 @@ "name": "Nikita Gavrilov"

"test": "npm run lint && npm run testonly",
"testonly": "mocha $npm_package_options_mocha",
"testonly": "mocha test/specs.js",
"lint": "eslint src"

@@ -13,0 +13,0 @@ },

@@ -7,3 +7,3 @@ # module-alias

This package is highly inspired by [app-module-path](https://www.npmjs.com/package/app-module-path) package and it's totally backwards compatible with it. The main difference is that this package is also allows you to create aliases of directories for further usage with `require`/`import`
This package is highly inspired by [app-module-path](https://www.npmjs.com/package/app-module-path) package and it's totally backwards compatible with it. The main difference is that this package also allows you to create aliases of directories for further usage with `require`/`import`

@@ -20,3 +20,3 @@ ## Install

```
```js
"_moduleDirectories": ["node_modules_custom"],

@@ -29,3 +29,3 @@ "_moduleAliases": {

"@my_module" : "src/some-file.js",
"something" : "src/foo", // Or without @. Actually, alias could be any string
"something" : "src/foo", // Or without @. Actually, it could be any string
}

@@ -32,0 +32,0 @@ ```

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc