This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@mdxvac/esm-utils
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

@mdxvac/esm-utils

DEPRECATED: Please consider using the plugin astro-m2dx, which bundles all features from the @mdxvac plugins in one plugin (completely opt-in).

Utilities to work with ESM (JavaScript) files.

Content

What is this?

This is an NPM package providing some utilities to work with (parsed) JavaScript files.

When should I use this?

You shouldn't, it is meant for internal use in the @mdxvac plugins, but not tested for general purpose.

Install

This package is ESM only. In Node.js (version 12.20+, 14.14+, or 16.0+), install with npm:

npm install -D @mdxvac/esm-utils

Use

import { parseEsm } from '@mdxvac/esm-utils';

const root = parseEsm(`
export function foo() {
  console.log("foo");
}
`);

Package Sidebar

Install

npm i @mdxvac/esm-utils

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

3.9 kB

Total Files

6

Last publish

Collaborators

  • shackhacker-christian