mirror of
https://github.com/hexedtech/codemp.git
synced 2025-04-10 13:31:34 +02:00
9 lines
139 B
Rust
9 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))
|
||
|
}
|