An open API service indexing awesome lists of open source software.

https://github.com/saqqdy/tsnd

A ts runtime tool
https://github.com/saqqdy/tsnd

saqqdy ts-runtime tscjs tsesm tsnd tsnd-cjs tsnd-esm typescript-runtime

Last synced: about 1 month ago
JSON representation

A ts runtime tool

Awesome Lists containing this project

README

        

# TSND

A ts runtime tool

[![NPM version][npm-image]][npm-url]
[![npm download][download-image]][download-url]
[![License][license-image]][license-url]

[![Sonar][sonar-image]][sonar-url]

## Installation

### 1. global

```bash
# Install via npm
npm install -g tsnd

# or install via yarn
yarn global add tsnd
```

### 2. local

```bash
# Install via npm
npm install -D tsnd

# or install via yarn
yarn add -D tsnd
```

## Usage

```bash
# Run the cjs module written in typescript
tscjs test.ts
# or
tsnd-cjs test.ts

# Run the esm module written in typescript
tsesm test.ts
# or
tsnd-esm test.ts
```

## Configuration

No configuration required

[npm-image]: https://img.shields.io/npm/v/tsnd.svg?style=flat-square
[npm-url]: https://npmjs.org/package/tsnd
[download-image]: https://img.shields.io/npm/dm/tsnd.svg?style=flat-square
[download-url]: https://npmjs.org/package/tsnd
[license-image]: https://img.shields.io/badge/License-MIT-blue.svg
[license-url]: LICENSE
[sonar-image]: https://sonarcloud.io/api/project_badges/quality_gate?project=saqqdy_tsnd
[sonar-url]: https://sonarcloud.io/dashboard?id=saqqdy_tsnd