module-alias
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"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 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7397