From 87b9660ed31ede430df2aa7e8bf6cb9f0d4e7938 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Fri, 24 Jul 2026 16:30:28 +0100 Subject: [PATCH] Scope the npm package to @visioncortex/vtracer Publish under the @visioncortex npm org. Add publishConfig.access=public for the scoped package and update the install/require examples in both READMEs. --- README.md | 6 +++--- nodejs/README.md | 4 ++-- nodejs/package.json | 5 ++++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 7fe8f99..77e211e 100644 --- a/README.md +++ b/README.md @@ -148,14 +148,14 @@ See [`crates/vtracer-py`](crates/vtracer-py/README.md) for the full API. ### Node.js Library -[`vtracer`](https://www.npmjs.com/package/vtracer) is available for Node as a WebAssembly build (from the [`nodejs`](nodejs/README.md) package) — image decoding and vectorization both run in wasm, so there is **no native dependency**. +[`@visioncortex/vtracer`](https://www.npmjs.com/package/@visioncortex/vtracer) is available for Node as a WebAssembly build (from the [`nodejs`](nodejs/README.md) package) — image decoding and vectorization both run in wasm, so there is **no native dependency**. ```sh -npm install vtracer +npm install @visioncortex/vtracer ``` ```js -const vtracer = require('vtracer'); +const vtracer = require('@visioncortex/vtracer'); await vtracer.convertFile('in.png', 'out.svg', { mode: 'polygon' }); const svg = vtracer.convertBuffer(buffer, { preset: 'poster' }); diff --git a/nodejs/README.md b/nodejs/README.md index fdd4793..73311ea 100644 --- a/nodejs/README.md +++ b/nodejs/README.md @@ -8,13 +8,13 @@ just `npm install`. ## Install ```sh -npm install vtracer +npm install @visioncortex/vtracer ``` ## Usage ```js -const vtracer = require('vtracer'); +const vtracer = require('@visioncortex/vtracer'); // file in, file out await vtracer.convertFile('in.png', 'out.svg'); diff --git a/nodejs/package.json b/nodejs/package.json index 11a8cf0..99896e6 100644 --- a/nodejs/package.json +++ b/nodejs/package.json @@ -1,9 +1,12 @@ { - "name": "vtracer", + "name": "@visioncortex/vtracer", "version": "1.0.0-alpha.1", "description": "Raster to vector graphics converter (SVG). WebAssembly build of the vtracer framework — no native dependencies.", "main": "index.js", "types": "index.d.ts", + "publishConfig": { + "access": "public" + }, "files": [ "index.js", "index.d.ts",