0.1.7 • Published 4 years ago

tomlrun v0.1.7

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

tomlrun

A dead simple script runner with TOML as an alternative to package.json scripts.

TOML supports single-quote strings, multi-line strings, comments, and other features meant for more human configuration files. A script runner based on it would support longer commands better than a JSON one.

tomlrun also looks for commands in your node_modules/.bin directory the way npm run would.

Install

Install it globally:

npm i -g tomlrun

Or install it in your package so you could add it to your package.json:

npm i -D tomlrun

Usage

Have a scripts.toml file in your project's root directory:

# A simple command:
sayhello = "echo hello"

# A command in a multi-line string:
format = """prettier --write \
  **.js **.jsx \
  **.ts **.tsx \
  """

Run the script and optionally pass arguments into it:

# tomlrun <script> [...args]
tomlrun sayhello world
hello world
0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago