Skip to content

Commit 31a4205

Browse files
authored
Update README.md
1 parent 67030dd commit 31a4205

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,21 @@ Angular library that helps convert file (from input[type=file]) to base64/arrayB
66
1. `npm install --save fctrlx-angular-file-reader`
77
2. add dependency to your project
88

9-
`import { FctrlxAngularFileReader } from 'fctrlx-angular-file-reader';
9+
`
10+
import { FctrlxAngularFileReader } from 'fctrlx-angular-file-reader';
1011

1112
@NgModule({
13+
1214
...
15+
1316
imports: [
17+
1418
...,
19+
1520
FctrlxAngularFileReader,
21+
1622
]
23+
1724
})`
1825

1926
3. Enjoy!
@@ -34,12 +41,19 @@ Angular library that helps convert file (from input[type=file]) to base64/arrayB
3441

3542
# Response
3643
`{
44+
3745
name: string;//file name
46+
3847
size: number;//file size
48+
3949
type: string;//file type
50+
4051
base64?: string;// base64 data
52+
4153
text?: string;// text data
54+
4255
arrBuf?: any;// array buffer data
56+
4357
}`
4458

4559

0 commit comments

Comments
 (0)