Awesome
To quickly get started with simple-data-analysis, create a folder and run:
# Node.js
npx setup-sda
# Bun
bunx --bun setup-sda
# Deno
deno run -A jsr:@nshiab/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
andtsconfig.json
(unless you passed the option --js) - If it's < 22.6.0, it will create an
main.js
- If it's >= 22.6.0, it will create an
-
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 watchindex.ts
orindex.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 watchindex.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