MCPcopy Create free account
hub / github.com/microsoft/typescript-go / Parse

Function Parse

internal/packagejson/packagejson.go:116–122  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

114}
115
116func Parse(data []byte) (Fields, error) {
117 var f Fields
118 if err := json.Unmarshal(data, &f, json.AllowDuplicateNames(true)); err != nil {
119 return Fields{}, err
120 }
121 return f, nil
122}

Callers 5

getPackageJsonInfoMethod · 0.92
GetPackageJsonMethod · 0.92
TestParseFunction · 0.92

Calls 2

UnmarshalFunction · 0.92
AllowDuplicateNamesFunction · 0.92

Tested by 1

TestParseFunction · 0.74