id3-wasm 0.0.1 → 0.0.14
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/package.json +7 -8
- package/wasm/README.md +0 -27
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "id3-wasm",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"description": "Insanely quick ID3 reading & writing for JavaScript powered by WebAssembly.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"clean": "rm -rf ./wasm ./dist",
|
|
20
|
+
"build": "pnpm run clean && pnpm --filter rust build && tsc",
|
|
21
|
+
"test": "vitest run"
|
|
22
|
+
},
|
|
18
23
|
"repository": {
|
|
19
24
|
"type": "git",
|
|
20
25
|
"url": "git+https://github.com/steve-keep/id3-wasm.git"
|
|
@@ -36,11 +41,5 @@
|
|
|
36
41
|
"devDependencies": {
|
|
37
42
|
"typescript": "^5.9.3",
|
|
38
43
|
"vitest": "^1.6.1"
|
|
39
|
-
},
|
|
40
|
-
"scripts": {
|
|
41
|
-
"clean": "rm -rf ./wasm ./dist",
|
|
42
|
-
"build": "pnpm run clean && pnpm --filter rust build && mv ../rust/dist ./wasm && tsc",
|
|
43
|
-
"test": "vitest run",
|
|
44
|
-
"publish:npm": "pnpm publish --no-git-checks"
|
|
45
44
|
}
|
|
46
|
-
}
|
|
45
|
+
}
|
package/wasm/README.md
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# Rust Crate for `id3-wasm`
|
|
2
|
-
|
|
3
|
-
This directory contains the core Rust crate that powers the `id3-wasm` library.
|
|
4
|
-
|
|
5
|
-
## Overview
|
|
6
|
-
|
|
7
|
-
This crate is responsible for all the low-level ID3 tag parsing and manipulation. It is built upon the excellent [`id3` crate](https://crates.io/crates/id3) and exposes a simplified API for common operations, which is then compiled to WebAssembly.
|
|
8
|
-
|
|
9
|
-
The primary interface is exposed through a `TagController` struct, which is designed to be used via `wasm-bindgen` from JavaScript.
|
|
10
|
-
|
|
11
|
-
## Building
|
|
12
|
-
|
|
13
|
-
This crate is not intended to be built or used as a standalone package. It is an integral part of the `id3-wasm` monorepo.
|
|
14
|
-
|
|
15
|
-
To build the crate, you should use the root-level build command, which orchestrates the entire process of compiling the Rust code to WebAssembly and integrating it into the final JavaScript package.
|
|
16
|
-
|
|
17
|
-
For detailed instructions on how to build and test the entire project, please refer to the main [README.md](../../README.md) at the root of the repository.
|
|
18
|
-
|
|
19
|
-
### Dependencies
|
|
20
|
-
|
|
21
|
-
- `id3`: For the core ID3 logic.
|
|
22
|
-
- `wasm-bindgen`: For generating the JavaScript bindings for the WebAssembly module.
|
|
23
|
-
- `js-sys`: To interact with JavaScript types.
|
|
24
|
-
|
|
25
|
-
## Contributing
|
|
26
|
-
|
|
27
|
-
If you wish to contribute to the Rust portion of the codebase, please follow the development and testing workflow outlined in the root `README.md`. All changes to this crate should be tested through the main project's testing suite.
|