@trim21/dprint-plugin-beancount 0.1.0 → 0.1.6
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 +1 -0
- package/index.d.ts +2 -2
- package/index.js +13 -13
- package/package.json +1 -1
- package/plugin.wasm +0 -0
package/README.md
CHANGED
|
@@ -5,6 +5,7 @@ Rust formatter for Beancount files with a reusable core library, a small CLI, an
|
|
|
5
5
|
## NPM / jsDelivr
|
|
6
6
|
The published package includes plugin.wasm for browser/CDN usage.
|
|
7
7
|
|
|
8
|
+
- Package: @trim21/dprint-plugin-beancount
|
|
8
9
|
- jsDelivr (latest): https://cdn.jsdelivr.net/npm/@trim21/dprint-plugin-beancount@latest/plugin.wasm
|
|
9
10
|
- Node usage: require the package and read `wasmPath` or call `getWasmBuffer()`.
|
|
10
11
|
|
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const wasmPath: string;
|
|
2
|
-
export function getWasmBuffer(): Uint8Array;
|
|
1
|
+
export const wasmPath: string;
|
|
2
|
+
export function getWasmBuffer(): Uint8Array;
|
package/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const fs = require("fs");
|
|
2
|
-
const path = require("path");
|
|
3
|
-
|
|
4
|
-
const wasmPath = path.join(__dirname, "plugin.wasm");
|
|
5
|
-
|
|
6
|
-
function getWasmBuffer() {
|
|
7
|
-
return fs.readFileSync(wasmPath);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
module.exports = {
|
|
11
|
-
wasmPath,
|
|
12
|
-
getWasmBuffer,
|
|
13
|
-
};
|
|
1
|
+
const fs = require("fs");
|
|
2
|
+
const path = require("path");
|
|
3
|
+
|
|
4
|
+
const wasmPath = path.join(__dirname, "plugin.wasm");
|
|
5
|
+
|
|
6
|
+
function getWasmBuffer() {
|
|
7
|
+
return fs.readFileSync(wasmPath);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
module.exports = {
|
|
11
|
+
wasmPath,
|
|
12
|
+
getWasmBuffer,
|
|
13
|
+
};
|
package/package.json
CHANGED
package/plugin.wasm
CHANGED
|
Binary file
|