@lpdfio/lpdf 0.28.0 → 0.28.1
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 +6 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -41,6 +41,12 @@ const doc = L.document({ size: 'letter' }, [
|
|
|
41
41
|
engine.render(doc).then((pdf) => require('node:fs').writeFileSync('proposal.pdf', pdf))
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
+
An ES module or a TypeScript file imports the same names, and gets the same classes:
|
|
45
|
+
|
|
46
|
+
```js
|
|
47
|
+
import { L, NoAttr } from '@lpdfio/lpdf'
|
|
48
|
+
```
|
|
49
|
+
|
|
44
50
|
## Requirements
|
|
45
51
|
|
|
46
52
|
- Node.js 20+
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lpdfio/lpdf",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.1",
|
|
4
4
|
"description": "Node.js SDK for Lpdf — PDF as Code on every platform. You describe a document as code or XML. Lpdf renders a compact, pixel-perfect PDF — identical across platforms.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
9
10
|
"require": "./dist/index.js",
|
|
10
|
-
"
|
|
11
|
+
"default": "./dist/index.js"
|
|
11
12
|
},
|
|
12
13
|
"./browser": {
|
|
13
14
|
"import": "./dist/browser.js",
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
"build": "tsc && node build-browser.mjs && node -e \"require('node:fs').cpSync('./wasm', './dist/wasm', {recursive:true})\"",
|
|
19
20
|
"build:node": "tsc",
|
|
20
21
|
"build:browser": "node build-browser.mjs",
|
|
21
|
-
"test": "node --test test/render.test.mjs"
|
|
22
|
+
"test": "node --test test/render.test.mjs test/package-entry.test.mjs"
|
|
22
23
|
},
|
|
23
24
|
"author": "lpdf.io",
|
|
24
25
|
"homepage": "https://lpdf.io",
|