npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@clyde-lang/cli

v3.0.1

Published

CLI tool for executing, parsing and debugging Clyde dialogue files

Downloads

160

Readme

Clyde CLI

npm version

CLI tool for executing, parsing and debugging Clyde dialogues.

interpreter screen

Usage

clyde <command>

Commands:
  clyde run     Command line interpreter
  clyde parse   Transforms *.clyde files to *.json
  clyde autoid  Auto-generate line ids
  clyde csv     Extract lines from Clyde Dialogue as CSV


Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]

Interpreter:

Usage: clyde run [options] <file path>

Options:
  -b, --block        Provide block name to run.                         [string]
  -f, --file         Path to .clyde or .json dialogue file              [string]
  -t, --translation  Path to .csv dictionary file                       [string]
  -s, --save-data    Path to persist data to be used across executions  [string]
  -p, --persistent   Do not clear screen on every line                 [boolean]
  -d, --debug        Show information about internal state             [boolean]
  -v, --verbose      Run with verbose logging                          [boolean]
      --help         Show help                                         [boolean]
      --version      Show version number                               [boolean]

Parser:

clyde parse <source file path> <output file path>
clyde parse -i <input> -o <output>

Options:
  -i, --input         Path to .clyde dialogue file                      [string]
  -o, --output        Path to output .json file. Default: <input>.json  [string]
  -b, --batch         Parse multiple files at same time                  [array]
      --batch-output  Path output names for batched files result. Should have sa
                      me number of arguments as in --batch.              [array]
  -d, --dry-run       Do not generate output file. Only check for syntax errors.
                                                                       [boolean]
      --help          Show help                                        [boolean]

autoid:

clyde autoid <input file> [output file]
clyde autoid -i <input> -o <output>

Options:
  -i, --input         Path to .clyde dialogue file or directory.        [string]
  -o, --output        Path to output .clyde file or directory. If not provided,
                      result is printed to stdout or original file is
                      overwritten if --replace flag is provided.        [string]
  -b, --batch         Parse multiple files at same time                  [array]
      --batch-output  Path output names for batched files result. Should have
                      same number of arguments as in --batch.            [array]
  -r, --replace       Ovewrite input file instead of printing to stdout.
                                                                       [boolean]
      --help          Show help                                        [boolean]

csv:

Usage:
clyde csv <source file path> [output file path]
clyde csv -i <input> -o <output>

Options:
  -i, --input          Path to .clyde dialogue file                     [string]
  -o, --output         Path to output .csv file. Default: <input>.csv   [string]
  -b, --batch          Parse multiple files at same time                 [array]
      --batch-output   Path output names for batched files result. Should have
                       same number of arguments as in --batch.           [array]
  -h, --header         CSV file first line. Default: "id;text"          [string]
  -s, --separator      CSV file separator. Default: ; (semicolon)       [string]
  -m, --with-metadata  Include metadata column with extra info (speaker, tags,
                       etc)                                            [boolean]
  -d, --dry-run        Do not generate output. Prints to stdout.       [boolean]
      --help           Show help                                       [boolean]

Instalation

npm install -g @clyde-lang/cli
# or
yarn global add @clyde-lang/cli