esm-dirname
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "esm-dirname", | ||
"repository": "https://github.com/aendrew/__dirname", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A stop-gap intended to help migrate older code to the new ECMAScript module syntax", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
# --dirname | ||
# esm-dirname | ||
@@ -9,4 +9,4 @@ This is a quick cludge almost entirely copied from [here](https://nodejs.org/api/esm.html#esm_no_code_require_code_code_exports_code_code_module_exports_code_code_filename_code_code_dirname_code) | ||
```js | ||
import { dirname } from "--dirname"; | ||
import { dirname } from "esm-dirname"; | ||
const __dirname = dirname(import.meta); | ||
``` |
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
1383