-
When using the function
the documentation says that it is possible to use custom media types. However it is not explained how this is done. |
Beta Was this translation helpful? Give feedback.
Answered by
wolfy1339
Mar 5, 2022
Replies: 1 comment
-
const { data } = octokit.rest.repos.getContent({
mediaType: {
format: "raw",
},
owner: "octocat",
repo: "hello-world",
path: "package.json",
});
console.log("package name: %s", JSON.parse(data).name); https://github.com/octokit/octokit.js#media-type-previews-and-formats |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
T3rm1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/octokit/octokit.js#media-type-previews-and-formats