1.0.0 • Published 4 years ago

import-typescript v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

import-typescript Travis CI Build Status

Import Typescript on the fly.

NPM Badge

Install

npm install import-typescript

Usage

const importTs = require("import-typescript")
const foo = importTs("./foo.ts")

foo()

API

importTypescript(moduleId, options?)

moduleId

Type: string

The module id.

options

Type: object

cache

Type: boolean\ Default: true

Whether to cache the transpiled code.