Skip to content

Minimalist setup scripts for the JavaScript library simple-data-analysis.

License

Notifications You must be signed in to change notification settings

nshiab/setup-sda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

To quickly get started with simple-data-analysis, create a folder and run:

# Node.js
npx setup-sda

# Bun
bunx setup-sda

# Deno
deno run -A npm:setup-sda

There is one option:

  • --js : To use JavaScript instead of TypeScript.

The script will:

  • Make sure that the folder is empty.

  • Check your runtime (Node.js, Bun, or Deno).

  • If you use Node.js:

    • If it's >= 22.6.0, it will create an main.ts and tsconfig.json (unless you passed the option --js)
    • If it's < 22.6.0, it will create an main.js
  • If you use Bun or Deno, it will create an index.ts (unless you passed the option --js)

  • If you use Node.js or Bun, it will create a package.json with two scripts:

    • npm run sda to run and watch index.ts or index.js
    • npm run clean to remove the folders .sda-cache (used by methods like cache) and .temp (used by duckdb-node when there is not enough RAM).
  • If you use Deno, it will create a deno.json with two tasks:

    • deno task sda to run and watch index.ts
    • deno task clean to remove the folders .sda-cache and .temp
  • Install the libraries (with NPM, Bun, or JSR):

  • Create a .gitignore file with:

    • node_modules
    • .temp
    • .sda-cache

About

Minimalist setup scripts for the JavaScript library simple-data-analysis.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published