0.0.3 • Published 1 year ago
canhtuan1 v0.0.3
eueno library
install
npm install @eueno/lib-node
example
const Eueno = require('./index');
const fs = require('fs');
async function example() {
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);
}
example();
0.0.3
1 year ago