# @balsamic/tsn

> typescript tooling

Latest version **0.0.9** (published 2024-01-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @balsamic/tsn
pnpm add @balsamic/tsn
yarn add @balsamic/tsn
bun add @balsamic/tsn
```

Provides the commands `tsn`, `tscheck`.

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2024-01-29 |
| First published | 2023-07-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=16.0.0 |
| Dependencies | 2 |
| Unpacked size | 47.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Salvatore Previti |
| Maintainers | salvatorepreviti |
| Keywords | balsamic, tsn |

## Links

- npm: https://www.npmjs.com/package/@balsamic/tsn
- Repository: https://github.com/SalvatorePreviti/balsamic
- Homepage: https://github.com/SalvatorePreviti/balsamic/tree/main/packages/dev#readme
- Issues: https://github.com/SalvatorePreviti/balsamic/issues
- npm.io page: https://npm.io/package/@balsamic/tsn

## Dependencies (2)

- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [app-root-path](https://npm.io/package/app-root-path.md) ^3.1.0

## Recent versions

- 0.0.9 (latest) — 2024-01-29
- 0.0.8 — 2023-11-03
- 0.0.7 — 2023-09-30
- 0.0.6 — 2023-08-05
- 0.0.5 — 2023-08-01
- 0.0.4 — 2023-08-01
- 0.0.3 — 2023-07-31
- 0.0.2 — 2023-07-27
- 0.0.1 — 2023-07-27

## README

# @balsamic/tsn

Simplified typescript node runner, for cjs and esm.

Automatically load .env files, and .ts files.

Usage:

```bash

tsn <file> [args]

```

Time the execution of a script

```bash

tsn --timed <file> [args]

```

Special commands:

```bash

# Check typescript files in the whole workspace

tsn tscheck

# Execute node test runner

tsn --test

# Executes an arbitrary executable with arguments and setting up node environment

tsn spawn <executable> [arguments]

# Run mocha test runner

tsn mocha [mocha arguments]

# Manages git subtrees

tsn git-subtree <arguments>

```

## Git subtrees

```
Usage: tsn git-subtree <command> [args]

Configuration is read from package.json, under the key `git-subtree`
    "git-subtree": { <name> { localFolder: [relative path], "repository": "https://...", "branch": [branch name], "push_branch": [branch name] } ... }

Commands:
  init [subtree1] [subtree2] ...   Initialize subtrees
  pull [subtree1] [subtree2] ...   Pull subtrees
  commit <subtree> "<message>"     Commit subtree
  push <subtree> [branch]          Push subtree
  print-config                     Print configuration
  list                             List the configured subtrees
```

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