mirror of
https://github.com/hexedtech/codemp.git
synced 2025-04-08 04:21:35 +02:00
8 lines
139 B
Rust
8 lines
139 B
Rust
use napi_derive::napi;
|
|
use crate::hash;
|
|
|
|
|
|
#[napi(js_name = "hash")]
|
|
pub fn js_hash(str : String) -> napi::Result<i64>{
|
|
Ok(hash(str))
|
|
}
|