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
[`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' });