@cosmol-studio/cosmolkit-core-analysis 0.6.2-rc.1 → 0.6.2
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/README.md +2 -2
- package/cosmolkit_wasm.js +190 -190
- package/cosmolkit_wasm_bg.wasm +0 -0
- package/index.d.ts +1 -0
- package/index.js +14 -0
- package/package.json +19 -15
- package/snippets/package.json +0 -1
- /package/snippets/{cosmolkit-wasm-3a9592bd6ca60084 → cosmolkit-wasm-6371387b58e22e76}/src/readonly_map.js +0 -0
package/README.md
CHANGED
|
@@ -7,9 +7,8 @@ npm install @cosmol-studio/cosmolkit
|
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
import
|
|
10
|
+
import { molFromSmiles } from "@cosmol-studio/cosmolkit";
|
|
11
11
|
|
|
12
|
-
await init();
|
|
13
12
|
const mol = molFromSmiles("CCO");
|
|
14
13
|
console.log(mol.toSmiles());
|
|
15
14
|
console.log(mol.numAtoms);
|
|
@@ -18,6 +17,7 @@ mol.free();
|
|
|
18
17
|
|
|
19
18
|
Use the full package above or select a smaller
|
|
20
19
|
[feature package](https://kit.cosmol.org/javascript/).
|
|
20
|
+
Importing the package initializes WASM automatically in browsers and Node.js.
|
|
21
21
|
Native objects retain Rust ownership and copy-on-write behavior.
|
|
22
22
|
Params accept typed options or parameter instances; invalid inputs throw typed errors.
|
|
23
23
|
|