File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 1
- pnpm-lock.yaml
1
+ pnpm-lock.yaml
2
+ # In order to avoid code samples to have tabs, they don't display well on npm
3
+ README.md
Original file line number Diff line number Diff line change @@ -22,17 +22,17 @@ const credentials: Credentials = { accessToken: "hf_..." };
22
22
await createRepo ({ repo , credentials , license: " mit" });
23
23
24
24
await commit ({
25
- repo ,
26
- credentials ,
27
- operations: [
28
- {
29
- operation: " addOrUpdate" ,
30
- path: " file.txt" ,
31
- // or new TextEncoder().encode("Hello World")
32
- // or Buffer.from("Hello world")
33
- content: new Blob ([" Hello World" ]),
34
- },
35
- ],
25
+ repo ,
26
+ credentials ,
27
+ operations: [
28
+ {
29
+ operation: " addOrUpdate" ,
30
+ path: " file.txt" ,
31
+ // or new TextEncoder().encode("Hello World")
32
+ // or Buffer.from("Hello world")
33
+ content: new Blob ([" Hello World" ]),
34
+ },
35
+ ],
36
36
});
37
37
38
38
// No need for credentials to download public files
You can’t perform that action at this time.
0 commit comments