require-typescript-module
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

A tool for Require typescript modules in node.

Installation

npm install require-typescript-module --save

Usage

// config.ts

export default {
  name: 'config'
}
const { requireTypescriptModule } = require('require-typescript-module');

const path = require('path');

const config = requireTypescriptModule(path.resolve(__dirname, './config.ts')); // { name: 'config' }

Readme

Keywords

none

Package Sidebar

Install

npm i require-typescript-module

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

7.87 kB

Total Files

5

Last publish

Collaborators

  • shisme