mlly 1.0.0-alpha.20
Install from the command line:
Learn more about npm packages
$ npm install @flex-development/mlly@1.0.0-alpha.20
Install via package.json:
"@flex-development/mlly": "1.0.0-alpha.20"
About this version
ECMAScript module utilities.
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.
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>
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'
This package exports the following identifiers:
canParseUrl
cwd
defaultConditions
defaultExtensions
defaultMainFields
extensionFormatMap
formats
getSource
isAbsoluteSpecifier
isArrayIndex
isBareSpecifier
isDirectory
isFile
isImportsSubpath
isRelativeSpecifier
lookupPackageScope
patternKeyCompare
patternMatch
readPackageJson
resolveAlias
resolveModule
-
resolver
legacyMainResolve
legacyMainResolveSync
moduleResolve
moduleResolveSync
packageExportsResolve
packageExportsResolveSync
packageImportsExportsResolve
packageImportsExportsResolveSync
packageImportsResolve
packageImportsResolveSync
packageResolve
packageResolveSync
packageSelfResolve
packageSelfResolveSync
packageTargetResolve
packageTargetResolveSync
root
toRelativeSpecifier
toUrl
There is no default export.
This package is fully typed with TypeScript.
Aliases
FileSystem
MainFieldMap
ModuleFormatMap
ResolveAliasOptions
ResolveModuleOptions
ProtocolMap
Stats
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.
Details
- mlly
- flex-development
- 3 days ago
- BSD-3-Clause
- 144 dependencies
Assets
- mlly-1.0.0-alpha.20.tgz
Download activity
- Total downloads 33
- Last 30 days 33
- Last week 33
- Today 0