0.3.0 • Published 4 months ago

@jil/module v0.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

@jil/module

Load and resolve custom file types at runtime with a more powerful Node.js require replacement.

import {requireModule} from '@jil/module';

const result = requireModule('./some/non-js/file.ts');

Features

  • CommonJS based importing with requireModule()
  • CommonJS interoperability with ESM-like files
  • ECMAScript module based importing with a custom ESM loader
  • Supported file types: TypeScript (.ts, .tsx)

Installation

npm i @jil/module

Documentation

0.3.0

4 months ago

0.2.13

7 months ago

0.2.12

11 months ago

0.2.11

1 year ago

0.2.10

1 year ago

0.2.9

1 year ago

0.2.8

1 year ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.3

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago