Skip to content

Commit 239045c

Browse files
committed
rebranding of ufile
1 parent f4edb52 commit 239045c

File tree

6 files changed

+7
-22
lines changed

6 files changed

+7
-22
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/filetype_wasm/target/
2-
/filetype_wasm/pkg/
3-
/filetype_wasm/.wasm-pack
1+
/ufile_wasm/target/
2+
/ufile_wasm/pkg/
3+
/ufile_wasm/.wasm-pack
44
/hasher_wasm/target/
55
/hasher_wasm/pkg/
66
/hasher_wasm/.wasm-pack

content/tools/file-indentifier.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h3>Results:</h3>
1414

1515
<script type="module">
1616
// Import the wasm-pack generated JS and your Wasm function
17-
import init, { identify_file_wasm } from '/pkg/filetype_wasm.js';
17+
import init, { identify_file_wasm } from '/pkg/ufile_wasm.js';
1818

1919
async function main() {
2020
// Initialize the Wasm module.

node_modules/.package-lock.json

Lines changed: 0 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

filetype_wasm/Cargo.toml renamed to ufile_wasm/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "filetype-wasm"
2+
name = "ufile-wasm"
33
version = "0.1.0"
44
edition = "2024"
55

@@ -12,4 +12,4 @@ wasm-bindgen = "0.2.100"
1212

1313
# Direct Git dependency on your core library
1414
# IMPORTANT: Replace the URL with the actual URL of your core repository
15-
filetype-core = { git = "https://github.com/rsomonte/filetype-core.git", branch = "main" }
15+
ufile-core = { git = "https://github.com/rsomonte/ufile-core.git", branch = "main" }

filetype_wasm/src/lib.rs renamed to ufile_wasm/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use wasm_bindgen::prelude::*;
22

33
// Import the function and struct from your core library
4-
use filetype_core::{identify_from_bytes, FileInfo};
4+
use ufile_core::{identify_from_bytes, FileInfo};
55

66
#[wasm_bindgen]
77
pub fn identify_file_wasm(bytes: &[u8]) -> String {

0 commit comments

Comments
 (0)