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

esm-dirname

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esm-dirname - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"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);
```
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