@bigmistqke/transform-module-paths
v0.0.2
Published
Transform module paths of a given javascript/typescript string
Downloads
2
Readme
@bigmistqke/transform-module-path
Transform dynamic and static import/export paths of a given javascript/typescript string
Install
npm i @bigmistqke/transform-module-path
Usage
import { transformModulePath } from "@bigmistqke/transform-module-path"
const transformed = transformModulePath(
`import * as test from "this-should-transform"
// import * as test from "this-should-not-transform"`,
(path) => `___${path}`,
)
License
MIT © bigmistqke