New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@atools/doc-preview-sdk

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@atools/doc-preview-sdk

preivew any doc with aliyun imm service

unpublished
latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

About

👀 📃 preivew any doc with aliyun imm service.

Principle

principle

Quick Start

import DocPreviewSDK from '@atools/doc-preview-sdk';

const dps = DocPreviewSDK({
  // 指定阿里云 sdk 版本
  sdkVersion = '1.1.5',

  // 缓存 store 名称
  storeName = YOUR_STORE_KEY,

  // LRU 缓存队列长度
  LRULength = 10,

  // 预览文档的挂载节点
  mountNode = YOUR_MOUNT_NODE,

  // debug 模式
  debug = false | true,

  // token 超时时间
  // @see https://help.aliyun.com/document_detail/162639.html
  tokenTimeOut = 10 * 60 * 1000,

  // 报错 hook
  onError = YOUR_ERROR_HOOK,
});

dps.preview({
  SrcUri: 'oss://icomeappupload/undefined-pc/workplatform/docx/1593659048000.docx',
  WatermarkValue: '测试水印'
});

Keywords

aliyun

FAQs

Package last updated on 03 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts