# @jil/module

> Module resolving and loading utilities with TypeScript support.

Latest version **0.3.0** (published 2023-12-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jil/module
pnpm add @jil/module
yarn add @jil/module
bun add @jil/module
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2023-12-30 |
| First published | 2022-02-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=14 |
| Dependencies | 0 |
| Unpacked size | 39.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | TY |
| Maintainers | towyuan |

## Links

- npm: https://www.npmjs.com/package/@jil/module
- npm.io page: https://npm.io/package/@jil/module

## Recent versions

- 0.3.0 (latest) — 2023-12-30
- 0.2.13 — 2023-10-18
- 0.2.12 — 2023-06-09
- 0.2.11 — 2023-03-19
- 0.2.10 — 2023-02-08
- 0.2.9 — 2022-12-29
- 0.2.8 — 2022-12-23
- 0.2.7 — 2022-10-25
- 0.2.6 — 2022-09-20
- 0.2.5 — 2022-03-13
- 0.2.4 — 2022-03-03
- 0.2.3 — 2022-02-27
- 0.2.2 — 2022-02-15
- 0.2.1 — 2022-02-13
- 0.2.0 — 2022-02-10

## README

# @jil/module

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

```ts
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

- [https://boostlib.dev/docs/module](https://boostlib.dev/docs/module)
- [https://boostlib.dev/api/module](https://boostlib.dev/api/module)

---
_Source: https://npm.io/package/@jil/module · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
