deno-module-extension-resolver
NPM module to resolve import module extension for Deno
Last updated 19 days ago by shimataro .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install deno-module-extension-resolver 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.2.0                                ...           latest (19 days ago)

2 Versions

  • 0.2.0                                ...           19 days ago
  • 0.1.0                                ...           20 days ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 19
Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |