#spreadsheet #ts #luau #cli

app ryver

A Cli that generates luau/ts files from spreadsheets

3 releases

0.1.2 Apr 7, 2024
0.1.1 Apr 7, 2024
0.1.0 Apr 6, 2024

#973 in Command line utilities

Download history 10/week @ 2024-07-25 2/week @ 2024-08-01 20/week @ 2024-09-19 23/week @ 2024-09-26 14/week @ 2024-10-03

57 downloads per month

MIT license

16KB
356 lines

Ryver🌊

A Cli that generates luau/ts files from spreadsheets

📥Install

With Aftman

Add an entry to the [tools] section of aftman.toml:

river = "piquu/ryver@0.1.2"

Or use the aftman Cli to add it:

aftman add piquu/ryver

With cargo

cargo install ryver

📕Usage

Arguments

  • -f, --file <FILE>
    • Input file: .xlsx, .xlsm, .xlsb, .xls
  • -o, --out <FOLDER>
    • Folder where the luau/ts files are put
  • -s, --sheet <SHEET>
    • Sheets that luau/ts files should be generated for
  • -i, --ignore-sheet
    • Sheets that luau/ts files wont be generated for
  • --table-name <NUMBER>
    • Spreadsheet column thats used as the table/object name
  • -n, --no-type
    • Dont add export type .../export interface ... to the luau/ts file
  • -t, --typescript
    • Generate a ts file instead of a luau file

Example

ryver -f example.xlsx -o ./out
ryver -f test.xlsx -o ./out -s Sheet1 -s Sheet2 --table-name 2 -t -n

✅Todo

  • Add csv/tsv support
  • Add Google Sheets support
  • Add support for table/object names/entries with spaces

📋License

Ryver is licensed under the MIT license.

Dependencies

~11–17MB
~293K SLoC