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.
This commit is contained in:
Chris Tsang
2026-07-24 16:30:28 +01:00
parent 5743912da6
commit 87b9660ed3
3 changed files with 9 additions and 6 deletions
+3 -3
View File
@@ -148,14 +148,14 @@ See [`crates/vtracer-py`](crates/vtracer-py/README.md) for the full API.
### Node.js Library ### 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 ```sh
npm install vtracer npm install @visioncortex/vtracer
``` ```
```js ```js
const vtracer = require('vtracer'); const vtracer = require('@visioncortex/vtracer');
await vtracer.convertFile('in.png', 'out.svg', { mode: 'polygon' }); await vtracer.convertFile('in.png', 'out.svg', { mode: 'polygon' });
const svg = vtracer.convertBuffer(buffer, { preset: 'poster' }); const svg = vtracer.convertBuffer(buffer, { preset: 'poster' });
+2 -2
View File
@@ -8,13 +8,13 @@ just `npm install`.
## Install ## Install
```sh ```sh
npm install vtracer npm install @visioncortex/vtracer
``` ```
## Usage ## Usage
```js ```js
const vtracer = require('vtracer'); const vtracer = require('@visioncortex/vtracer');
// file in, file out // file in, file out
await vtracer.convertFile('in.png', 'out.svg'); await vtracer.convertFile('in.png', 'out.svg');
+4 -1
View File
@@ -1,9 +1,12 @@
{ {
"name": "vtracer", "name": "@visioncortex/vtracer",
"version": "1.0.0-alpha.1", "version": "1.0.0-alpha.1",
"description": "Raster to vector graphics converter (SVG). WebAssembly build of the vtracer framework — no native dependencies.", "description": "Raster to vector graphics converter (SVG). WebAssembly build of the vtracer framework — no native dependencies.",
"main": "index.js", "main": "index.js",
"types": "index.d.ts", "types": "index.d.ts",
"publishConfig": {
"access": "public"
},
"files": [ "files": [
"index.js", "index.js",
"index.d.ts", "index.d.ts",