parser-de-notas-de-corretagem 0.4.2 → 0.4.4

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 CHANGED
@@ -133,6 +133,13 @@ async function main() {
133
133
  main();
134
134
  ```
135
135
 
136
+ ### Browser
137
+ Since only `Uint8Array` is accepted, use the following code to convert a string using the browser
138
+ ```JavaScript
139
+ if (typeof fileContent === 'string') fileContent = Uint8Array.from(fileContent, x => x.charCodeAt(0));
140
+ assetsParser.parseNote(filePath, fileContent, filePasswords);
141
+ ```
142
+
136
143
  ### Add a custom stock
137
144
  ```Typescript
138
145
  const assets = new NoteParser();