deno-module-extension-resolver

    0.3.0 • Public • Published

    deno-module-extension-resolver

    Ubuntu Release Engine License

    Resolves module extensions in import / export from.

    This is a NPM package for Deno.

    Install

    npm i deno-module-extension-resolver

    Usage

    deno-module-extension-resolver SRC_DIR DST_DIR
    • resolves module extensions in .ts / .js files
    • directory structure is keeped
    • destination directories will be created if not exist

    Example

    // will be resolved
    import "/absolute/path/to/module";
    import foo from "./relative/path";
    import * as bar from "/named/export";
    export * from "/export/aggregation";
    export {baz, qux} from "/export/aggregation";
    
    // will NOT be resolved
    import "/already/resolved.ts";
    import "/files/to/resolve/not/exists";
    import "neither/absolute/nor/relative";
    import "https://example.com/not/file/path";
    require("/deno/does/not/support/require");

    Changelog

    See CHANGELOG.md.

    Keywords

    none

    Install

    npm i deno-module-extension-resolver

    DownloadsWeekly Downloads

    1

    Version

    0.3.0

    License

    MIT

    Unpacked Size

    161 kB

    Total Files

    7

    Last publish

    Collaborators

    • shimataro