Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/naturalcycles/cli

CLI utils to be installed globally via 'npm i -g'
https://github.com/naturalcycles/cli

cli del kpy ts-node

Last synced: 28 days ago
JSON representation

CLI utils to be installed globally via 'npm i -g'

Awesome Lists containing this project

README

        

## @naturalcycles/cli

> CLI utils to be installed globally via 'npm i -g'

[![npm](https://img.shields.io/npm/v/@naturalcycles/cli/latest.svg)](https://www.npmjs.com/package/@naturalcycles/cli)
[![install size](https://packagephobia.now.sh/badge?p=@naturalcycles/cli)](https://packagephobia.now.sh/result?p=@naturalcycles/cli)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

# Install

`npm i -g @naturalcycles/cli`

# CLI commands (globally available)

- `tsn`: short alias for `ts-node` with additional parameters
`-T -r tsconfig-paths/register -r dotenv/config`. Will use `./scripts/tsconfig.json` (file will be
auto-generated in not present).

Set `TSN_ESBUILD` env variable to enable experimental `esbuild` transpilation, using `esbuild` and
`esbuild-register` instead of `typescript` and `ts-node`.

# Packaging

- `engines.node`: Latest Node.js LTS
- `main: dist/index.js`: commonjs, es2020