jupiter-fs
A small file system implementation for the Jupiter blockchain.
Install
$ npm install -s jupiter-fs
Usage
import JupiterFs from 'jupiter-fs'
const jupFs = JupiterFs({
server: 'https://jpr.gojupiter.tech',
address,
passphrase,
encryptSecret,
})
const listOfFiles = await jupFs.ls()
await jupFs.writeFile('myFile.txt', Buffer.from('jupToTheMoon'))
const buffer = await jupFs.getFile({ name: 'myFile.txt' })
const buffer = await jupFs.getFile({
id: '123e4567-e89b-42d3-a456-556642440000',
})
await readStream = await jupFs.getFileStream({ name: 'myFile.txt' })
await jupFs.deleteFile('123e4567-e89b-42d3-a456-556642440000')
Tips w/ cryptocurrency
I love FOSS (free and open source software) and for the most part don't want to charge for the software I build. It does however take a good bit of time keeping up with feature requests and bug fixes, so if you have the desire and ability to send me a free coffee, it would be greatly appreciated!
- Bitcoin (BTC):
3D779dP5SZo4szHivWHyFd6J2ESumwDmph
- Ethereum (ETH and ERC-20 tokens):
0xF3ffa9706b3264EDd1DAa93D5F5D70C8f71fAc99
- Stellar (XLM):
GACH6YMYFZ574FSGCV7IJXTGETEQL3DLQK64Z6DFGD57PZL5RH6LYOJT
- Jupiter (JUP) mainnet:
JUP-TUWZ-4B8Z-9REP-2YVH5