This repository was archived by the owner on Feb 13, 2024. It is now read-only.
estuary-upload 1.0.0
Install from the command line:
Learn more about npm packages
$ npm install @numbersprotocol/estuary-upload@1.0.0
Install via package.json:
"@numbersprotocol/estuary-upload": "1.0.0"
About this version
import { Estuary } from 'estuary-upload';
const estuary = new Estuary('<api-key>');
const cid = await estuary.addFromPath('my-file.jpg');
console.log(
`The file is uploaded to Estuary with CID ${cid} preserved!`
);
$ export ESTUARY_API_KEY=<api-key>
$ npm run add-dir <file-dirpath>
...
'bafkreia2254bseihmsqw7fzxsk54p7nqmitn2ibhnjiafxtql6by54idv4',
'bafkreigrov5qj25vp2vawsjlav5v3veihagovvddjodlydspmy2mtmks5q',
... 900 more items
]
$ npm run unit
The integration test will fetch an image (size ~20MB) from public IPFS gateway and upload it to Estuary.
- Set API key
$ export ESTUARY_API_KEY=<api-key>
- Run test
$ npm run integration
Details
- estuary-upload
-
numbersprotocol
- almost 3 years ago
- MIT
- 19 dependencies
Assets
- estuary-upload-1.0.0.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0