![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@polyfact/vectorizer
Advanced tools
Here is a README generated from the code snippet:
Vectorize code repositories and PDFs into vector representations using Polyfact AI.
npm install @polyfact/vectorizer
Or install globally to use the CLI:
npm install -g @polyfact/vectorizer
import Vectorizer, { SourceType } from "@polyfact/vectorizer";
const vectorizer = new Vectorizer(token, maxTokens, SourceType.DIRECTORY);
const files = await vectorizer.readFiles(filePaths);
await vectorizer.vectorize(files, progressCallback);
const memoryId = vectorizer.getMemoryId();
$ @polyfact/vectorizer --help
Usage: @polyfact/vectorizer [options] [command]
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
repo [files...] Transform your entire repository into a vector representation
pdf [files...] Transform your entire PDFs into a vector representation
help [command] display help for command
Vectorize a code repository:
$ @polyfact/vectorizer repo src/ --token abc123 --max-token 1000
Vectorize PDF files:
$ @polyfact/vectorizer pdf file1.pdf file2.pdf --token abc123
The memory ID will be output after vectorization to use in your project with the Polyfact SDK.
MIT
FAQs
Here is a README generated from the code snippet:
The npm package @polyfact/vectorizer receives a total of 3 weekly downloads. As such, @polyfact/vectorizer popularity was classified as not popular.
We found that @polyfact/vectorizer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.