@flex-development/mlly
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha.20 • Public • Published

⚙️ mlly

github release npm codecov module type: esm license conventional commits typescript vitest yarn

ECMAScript module utilities.

Contents

What is this?

mlly is a set of ECMAScript module (ESM) utilities. It exposes several tools to bridge the gap between developer experience and the current state of ECMAScript modules.

Install

This package is ESM only.

In Node.js (version 18+) with yarn:

yarn add @flex-development/mlly
See Git - Protocols | Yarn  for details regarding installing from Git.

In Deno with esm.sh:

import { resolveModule } from 'https://esm.sh/@flex-development/mlly'

In browsers with esm.sh:

<script type="module">
  import { resolveModule } from 'https://esm.sh/@flex-development/mlly'
</script>

Use

import {
  canParseUrl,
  cwd,
  defaultConditions,
  defaultExtensions,
  defaultMainFields,
  extensionFormatMap,
  formats,
  getSource,
  isAbsoluteSpecifier,
  isArrayIndex,
  isBareSpecifier,
  isDirectory,
  isFile,
  isImportsSubpath,
  isRelativeSpecifier,
  legacyMainResolve,
  legacyMainResolveSync,
  lookupPackageScope,
  moduleResolve,
  moduleResolveSync,
  packageExportsResolve,
  packageExportsResolveSync,
  packageImportsExportsResolve,
  packageImportsExportsResolveSync,
  packageImportsResolve,
  packageImportsResolveSync,
  packageResolve,
  packageResolveSync,
  packageSelfResolve,
  packageSelfResolveSync,
  packageTargetResolve,
  packageTargetResolveSync,
  patternKeyCompare,
  patternMatch,
  readPackageJson,
  resolveAlias,
  resolveModule,
  resolver,
  root,
  toRelativeSpecifier,
  toUrl
} from '@flex-development/mlly'

API

This package exports the following identifiers:

There is no default export.

Types

This package is fully typed with TypeScript.

Interfaces

Type Aliases

Contribute

See CONTRIBUTING.md.

This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.

Package Sidebar

Install

npm i @flex-development/mlly

Weekly Downloads

263

Version

1.0.0-alpha.20

License

BSD-3-Clause

Unpacked Size

259 kB

Total Files

89

Last publish

Collaborators

  • unicornware