0.0.3 • Published 1 year ago

canhtuan1 v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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();