New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

text-embedder

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

text-embedder

Embed content to text

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

text-embedder

向文本中嵌入内容

const embedder = require('text-embedder');

embedder({
  text,                  // 原始文本
  embeds: [
    {
      insert: N,         // 在第 N 行之前,插入 content
      content: ...,      // 插入的内容
    },
    {
      replace: [X, Y],   // 从第 X 行到第 Y 行,替换为 content
      content: ...,      // 替换的内容
    },
    {
      insert: N,         // 优先使用 insert
      replace: [X, Y]    // replace 不起作用
      content: ...,
    },
  ],
});

FAQs

Package last updated on 08 Jul 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc