@ilb/uriaccessorjs

1.0.33 • Public • Published

uriaccessorjs

uriaccessor for javascript

usage

inject using awilix

    constructor({uriAccessorFactory}) {
        this.uriAccessorFactory = uriAccessorFactory;
    }

or simply create new instance using new UriAccessorFactory({currentUser})

then get uri accessor and use its method

const uriAccessor = this.uriAccessorFactory.getUriAccessor(uri);
const buffer = await uriAccessor.getBinary();
const string = await uriAccessor.getContent();



etc

Readme

Keywords

none

Package Sidebar

Install

npm i @ilb/uriaccessorjs

Weekly Downloads

30

Version

1.0.33

License

ISC

Unpacked Size

14 kB

Total Files

12

Last publish

Collaborators

  • barakok
  • dmitryi698
  • ssortia
  • unsfer
  • slavb18
  • maximumquiet