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

chat_embedding

Package Overview
Dependencies
Maintainers
3
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chat_embedding

聊天机器人嵌入脚本

latest
npmnpm
Version
1.1.20
Version published
Maintainers
3
Created
Source

chat_embedding

支持 Typescript

聊天机器人嵌入脚本

NPM version

Getting started

Using npm or yarn

$ npm install chat_embedding
import chatEmbedding from "chat_embedding"

chatEmbedding.run({
  serverUrl: "http://10.0.10.100:8237",
})

Import in Browser

// 聊天机器人服务地址
var serverUrl = "http://10.0.10.100:8237"
// 脚本文件地址
var jsFileUrl = serverUrl+"/static/js/chat_embedding.js"

var scriptTag = document.createElement('script');

scriptTag.src = jsFileUrl;

scriptTag.onload = function () {
  chatEmbedding.default.run({serverUrl})
}

document.body.appendChild(scriptTag);

Parameters

PropertyDescriptionRequiredDefaultType
serverUrl聊天机器人服务地址string
position聊天机器人位置{left:100,bottom:100,}{left?:number,bottom?:number,right?:number,top?:number}
modalWidth聊天窗口宽800number
modalHeight聊天窗口高500number
logoSrc聊天窗口 logo 地址string

FAQs

Package last updated on 06 Jun 2020

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