MCPcopy
hub / github.com/github/docs / init

Method init

lib/page.js:37–41  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

35
36class Page {
37 static async init(opts) {
38 opts = await Page.read(opts)
39 if (!opts) return
40 return new Page(opts)
41 }
42
43 static async read(opts) {
44 assert(opts.languageCode, 'languageCode is required')

Callers 10

rereadByPathFunction · 0.80
createTreeFunction · 0.80
find-page.jsFile · 0.80
page.jsFile · 0.80
getPageFunction · 0.80
data.jsFile · 0.80
frame.jsFile · 0.80
redirects.jsFile · 0.80
release-notes.jsFile · 0.80

Calls 1

readMethod · 0.80

Tested by

no test coverage detected