eueno library
Installation
npm install @eueno/lib-node
Example
const Eueno = require('@eueno/lib-node');
const fs = require('fs');
async function main() {
const eueno = new Eueno({
endpoint: 'domain_eueno',
});
const file = await fs.readFileSync('1.png');
const data = await eueno.upload(
file,
{
projectKey: '',
key: {
publicKey: '',
},
},
{
projectId: 129,
filename: '1.png',
contentLength: 12313,
contentType: 'image/png',
method: 'ENCRYPT',
keepPath: false,
},
);
console.log('data', data);
}
main();