doorplate 0.7.2-dev → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/doorplate.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Parse US addresses into components, a stable match key and USPS-style lines. The
|
|
|
4
4
|
WebAssembly: it runs in Node and in the browser, with no dependencies and no network access. In a browser page
|
|
5
5
|
the addresses never leave the visitor's machine.
|
|
6
6
|
|
|
7
|
-
> **Beta
|
|
7
|
+
> **Beta.** The package is built from the same wasm as the
|
|
8
8
|
> [live demo](https://jeremeybingham.github.io/doorplate/demo/) and checked against the native build.
|
|
9
9
|
|
|
10
10
|
```js
|
|
@@ -24,8 +24,8 @@ dp.parseBatch(["1 Main St, Reno NV 89501", "..."]); // { columns, rows } like `d
|
|
|
24
24
|
read a sibling file, such as Cloudflare Workers. Node 18 or newer; ES modules only. Bundlers (Vite, webpack 5,
|
|
25
25
|
Next) pick up `doorplate.wasm` through `new URL(..., import.meta.url)`.
|
|
26
26
|
|
|
27
|
-
**Size and speed:** the package is 2.0 MB packed (5.
|
|
28
|
-
tables. In Node, init takes about
|
|
27
|
+
**Size and speed:** the package is 2.0 MB packed (5.6 MB unpacked, 1.5 MB with brotli), mostly place and street
|
|
28
|
+
tables. In Node, init takes about 22 ms, one `parse` about 53 µs, and `parseBatch` about 23 µs a row.
|
|
29
29
|
|
|
30
30
|
Guide: [JavaScript](https://doorplate.readthedocs.io/en/latest/javascript/). The records, the key and the
|
|
31
31
|
warning codes are the same as the command line and Python.
|
package/doorplate.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doorplate",
|
|
3
|
-
"version": "0.7.2
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Parse US addresses into components, a stable match key and USPS-style lines. Rust compiled to WebAssembly; runs in Node and in the browser, nothing leaves the machine.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|