parser-de-notas-de-corretagem 0.4.3 → 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 +7 -0
- package/notes-parser.js +1 -1
- package/notes-parser.js.map +1 -1
- package/package.json +1 -1
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();
|