Skip to content

VaskillerDev/immg

Repository files navigation

Implementation import-maps generator

Usage:

> npx immg --help

Options:
  -b, --baseUrlPath [type]  <string> path to root package.json
  -f, --forceMode [type]        <boolean> if enable - force rewrite previous importmap (default: false)

  -x, --prefix [type]       <string> append prefix to path (default: "") for generate in importsmap

                            example: with arg './module/' in package.importmap.json:
                            "@my/lib": "node_modules/@tc/asynchronous-lib/dist/"
                            generate that:
                            "@my/lib": "./module/node_modules/@tc/asynchronous-lib/dist/"

  -h, --help                display help for command

Example:

npx immg --baseUrlPath D:/path/to/your/package.json --forceMode true --prefix ./module/

or

> cd path/to/your/project
> npx immg -x ./module/ -f true

Git install

npm i https://github.com/VaskillerDev/immg.git -g

Netstat usage:

> npx immg-netstat --help

Options:
  -p, --pathToFile [type]  <string> path to package.importmap.json
  -u, --baseUrl [type]     <string> base url to server with modules
  -h, --help               display help for command

Example:

npx immg-netstat -p D:/path/to/your/package.importmap.json -u https://localhost:9000/your/project/root

Todo

  • Basic generator import path
  • Specifier remapping
  • Scoping support
  • Web checker access es-module via response code
  • Dynamic import map API

About

Import maps module generator (immg). Import maps allows control over what URLs get fetched by JavaScript import statements and import() expressions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published