rtf-codec 0.0.0 → 1.0.0

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.
Files changed (61) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +208 -0
  3. package/dist/base64.cjs +66 -0
  4. package/dist/base64.d.cts +7 -0
  5. package/dist/base64.d.ts +7 -0
  6. package/dist/base64.js +62 -0
  7. package/dist/bytes.cjs +25 -0
  8. package/dist/bytes.d.cts +6 -0
  9. package/dist/bytes.d.ts +6 -0
  10. package/dist/bytes.js +22 -0
  11. package/dist/codec.cjs +29 -0
  12. package/dist/codec.d.cts +2308 -0
  13. package/dist/codec.d.ts +2308 -0
  14. package/dist/codec.js +26 -0
  15. package/dist/codepage.cjs +98 -0
  16. package/dist/codepage.d.cts +10 -0
  17. package/dist/codepage.d.ts +10 -0
  18. package/dist/codepage.js +92 -0
  19. package/dist/diagnostics-DdDFJLNO.d.cts +51 -0
  20. package/dist/diagnostics-DdDFJLNO.d.ts +51 -0
  21. package/dist/diagnostics.cjs +75 -0
  22. package/dist/diagnostics.d.cts +2 -0
  23. package/dist/diagnostics.d.ts +2 -0
  24. package/dist/diagnostics.js +67 -0
  25. package/dist/group.cjs +40 -0
  26. package/dist/group.d.cts +11 -0
  27. package/dist/group.d.ts +11 -0
  28. package/dist/group.js +38 -0
  29. package/dist/header.cjs +378 -0
  30. package/dist/header.d.cts +43 -0
  31. package/dist/header.d.ts +43 -0
  32. package/dist/header.js +376 -0
  33. package/dist/index.cjs +28 -0
  34. package/dist/index.d.cts +8 -0
  35. package/dist/index.d.ts +8 -0
  36. package/dist/index.js +8 -0
  37. package/dist/list-id.cjs +30 -0
  38. package/dist/list-id.d.cts +16 -0
  39. package/dist/list-id.d.ts +16 -0
  40. package/dist/list-id.js +27 -0
  41. package/dist/options.cjs +7 -0
  42. package/dist/options.d.cts +18 -0
  43. package/dist/options.d.ts +18 -0
  44. package/dist/options.js +5 -0
  45. package/dist/read.cjs +854 -0
  46. package/dist/read.d.cts +16 -0
  47. package/dist/read.d.ts +16 -0
  48. package/dist/read.js +852 -0
  49. package/dist/tokenize.cjs +155 -0
  50. package/dist/tokenize.d.cts +25 -0
  51. package/dist/tokenize.d.ts +25 -0
  52. package/dist/tokenize.js +154 -0
  53. package/dist/units.cjs +43 -0
  54. package/dist/units.d.cts +17 -0
  55. package/dist/units.d.ts +17 -0
  56. package/dist/units.js +29 -0
  57. package/dist/write.cjs +364 -0
  58. package/dist/write.d.cts +7 -0
  59. package/dist/write.d.ts +7 -0
  60. package/dist/write.js +362 -0
  61. package/package.json +95 -2
@@ -0,0 +1,16 @@
1
+ import { n as RtfDiagnostic } from "./diagnostics-DdDFJLNO.cjs";
2
+ import { ReadRtfOptions } from "./options.cjs";
3
+ import { ContentDocument, DocumentTree } from "document-schema.js";
4
+ //#region src/read.d.ts
5
+ interface ReadRtfResult {
6
+ readonly documentPackage: DocumentTree;
7
+ readonly diagnostics: readonly RtfDiagnostic[];
8
+ }
9
+ interface ReadRtfContentResult {
10
+ readonly document: ContentDocument;
11
+ readonly diagnostics: readonly RtfDiagnostic[];
12
+ }
13
+ declare function readRtfContent(input: Uint8Array | string, options?: ReadRtfOptions): ReadRtfContentResult;
14
+ declare function readRtf(input: Uint8Array | string, options?: ReadRtfOptions): ReadRtfResult;
15
+ //#endregion
16
+ export { ReadRtfContentResult, ReadRtfResult, readRtf, readRtfContent };
package/dist/read.d.ts ADDED
@@ -0,0 +1,16 @@
1
+ import { n as RtfDiagnostic } from "./diagnostics-DdDFJLNO.js";
2
+ import { ReadRtfOptions } from "./options.js";
3
+ import { ContentDocument, DocumentTree } from "document-schema.js";
4
+ //#region src/read.d.ts
5
+ interface ReadRtfResult {
6
+ readonly documentPackage: DocumentTree;
7
+ readonly diagnostics: readonly RtfDiagnostic[];
8
+ }
9
+ interface ReadRtfContentResult {
10
+ readonly document: ContentDocument;
11
+ readonly diagnostics: readonly RtfDiagnostic[];
12
+ }
13
+ declare function readRtfContent(input: Uint8Array | string, options?: ReadRtfOptions): ReadRtfContentResult;
14
+ declare function readRtf(input: Uint8Array | string, options?: ReadRtfOptions): ReadRtfResult;
15
+ //#endregion
16
+ export { ReadRtfContentResult, ReadRtfResult, readRtf, readRtfContent };