Update Code.js

Example should use camelCase in Node.
This commit is contained in:
Ryan Bell 2020-10-19 21:22:04 -07:00 committed by GitHub
parent 6cc2e4c62c
commit 7b0e013280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -45,11 +45,11 @@ const client = new SkynetClient();
(async () => { (async () => {
// upload // upload
const skylink = await client.UploadFile("./src.jpg"); const skylink = await client.uploadFile("./src.jpg");
console.log(\`Upload successful, skylink: \${skylink}\`); console.log(\`Upload successful, skylink: \${skylink}\`);
// download // download
await client.DownloadFile("./dst.jpg", skylink); await client.downloadFile("./dst.jpg", skylink);
console.log('Download successful'); console.log('Download successful');
})()`; })()`;