mirror of
https://github.com/logos-storage/logos-storage-js.git
synced 2026-01-03 14:03:06 +00:00
20 lines
369 B
Markdown
20 lines
369 B
Markdown
# Download example
|
|
|
|
Small example to show how to download a file in node with Codex.
|
|
|
|
## Install dependencies
|
|
|
|
```bash
|
|
npm install
|
|
```
|
|
|
|
## Run node
|
|
|
|
```bash
|
|
CODEX_CID=REPLACE_BY_YOUR_CID node index.js
|
|
```
|
|
|
|
The response will be displayed as text, so it is better to test with .txt files.
|
|
|
|
Note: You can define `CODEX_NODE_URL`, default value is "http://localhost:8080".
|