Socket
Socket
Sign inDemoInstall

@5app/esm-helpers

Package Overview
Dependencies
0
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @5app/esm-helpers

ESM Helper Utility functions


Version published
Weekly downloads
121
increased by9.01%
Maintainers
4
Install size
2.52 kB
Created
Weekly downloads
 

Changelog

Source

0.0.3 (2022-09-07)

Bug Fixes

  • package: add to github registry (047cb4e)

Readme

Source

ESM Helpers

CircleCI

ESM Helpers provides shims for working with NodeJS using ESM

import {dirName, requireJSON} from 'esm-helpers';

// Recreate __dirname
const __dirname === dirName(import.meta);

// Load JSON files from a relative path
// Replaces `require('./package.json')`
const myJSON = await requireJSON(import.meta, './package.json');

FAQs

Last updated on 07 Sep 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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