MCPcopy
hub / github.com/oauthjs/node-oauth2-server / load_package_json

Function load_package_json

docs/npm_conf.py:11–15  ·  view source on GitHub ↗

Loads package.json from 'path'.

(path)

Source from the content-addressed store, hash-verified

9from datetime import datetime
10
11def load_package_json(path):
12 """ Loads package.json from 'path'.
13 """
14 with open(path) as f:
15 return json.load(f)
16
17def get_short_version(version):
18 """ Extracts the short version ("x.y.z") from 'version'.

Callers 1

get_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected