Commit Graph

7 Commits

Author SHA1 Message Date
sus 07b719aaca js: add moduleInfo method (#2057)
Add a `ksu.moduleInfo()` in JS.
resolves https://github.com/tiann/KernelSU/issues/1571

test module's index.html

![image](https://github.com/user-attachments/assets/39920606-452c-4b19-abca-967c25146d6a)

The test module:

[moduleInfo_test.zip](https://github.com/user-attachments/files/17001977/moduleInfo_test.zip)

test module's result:

![image](https://github.com/user-attachments/assets/9dbbd2e8-f7ea-418f-b545-66d33ce1b3ae)
2024-09-14 21:52:11 +08:00
riChar ade1f793a5 Add types in package.json (#1415)
The package can not be imported into TS project without this option.
[docs](https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#including-declarations-in-your-npm-package)
2024-03-04 23:05:38 +08:00
weishu b29fc46e15 js: relicense js library to Apache 2.0 2024-02-23 21:30:02 +08:00
weishu a9bd7a7686 js: Allow spawn(command, options) call, fix memory leak 2024-02-23 09:16:00 +08:00
weishu 8d95005f73 js: simplify the exec call 2024-02-22 22:41:50 +08:00
weishu 3774fd6d58 js: Add more API and README 2024-02-22 22:09:27 +08:00
weishu 9d0e1a246c js: Add jsapi package 2024-02-22 20:42:15 +08:00