forked from nodejs/nodejs.dev
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapiUrls.js
More file actions
12 lines (12 loc) · 563 Bytes
/
apiUrls.js
File metadata and controls
12 lines (12 loc) · 563 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
module.exports = {
apiReleaseContents: releaseVersion =>
`https://api.github.com/repos/nodejs/node/contents/doc/api?ref=${releaseVersion}`,
nvmTags: 'https://api.github.com/repos/nvm-sh/nvm/tags',
nodeReleaseSchedule:
'https://raw.githubusercontent.com/nodejs/Release/main/schedule.json',
nodeReleaseData: 'https://nodejs.org/dist/index.json',
nodeBannersData:
'https://raw.githubusercontent.com/nodejs/nodejs.org/main/site.json',
jsonLink: (fileName, version) =>
`https://nodejs.org/docs/latest-${version}.x/api/${fileName}.json`,
};