8000 🙈 Do not prettier README · huggingface/huggingface.js@fc22b48 · GitHub
[go: up one dir, main page]

Skip to content

Commit fc22b48

Browse files
committed
🙈 Do not prettier README
1 parent 9d77bf7 commit fc22b48

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

‎packages/hub/.prettierignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
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

‎packages/hub/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ const credentials: Credentials = { accessToken: "hf_..." };
2222
await createRepo({ repo, credentials, license: "mit" });
2323

2424
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+
],
3636
});
3737

3838
// No need for credentials to download public files

0 commit comments

Comments
 (0)
0