https://github.com/single-spa/import-map-microfrontend-utils
Utility types and functions for import-map-microfrontend related projects
https://github.com/single-spa/import-map-microfrontend-utils
Last synced: over 1 year ago
JSON representation
Utility types and functions for import-map-microfrontend related projects
- Host: GitHub
- URL: https://github.com/single-spa/import-map-microfrontend-utils
- Owner: single-spa
- License: mit
- Created: 2024-10-17T04:29:51.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-19T00:08:00.000Z (over 1 year ago)
- Last Synced: 2025-02-15T07:46:52.461Z (over 1 year ago)
- Language: TypeScript
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# import-map-microfrontend-utils
Utility types and functions for import-map-microfrontend related projects
## Installation
```sh
npm i @single-spa/import-map-microfrontend-utils
```
## Usage
```ts
import { ImportMapMicrofrontendUtils } from "@single-spa/import-map-microfrontend-utils";
const utils = new ImportMapMicrofrontendUtils({
baseOrigin: "https://cdn.example.com",
});
utils.getMicrofrontendURLPrefix("@org/navbar");
utils.getDependenciesURLPrefix();
utils.getDependenciesFolderName();
utils.getMFEsFolderName();
```