(add-dependencies package-json deps)
Adds 'dependencies' and 'devDependencies' from deps
map onto a package-json
map.
Adds 'dependencies' and 'devDependencies' from `deps` map onto a `package-json` map.
(compare-package-json-deps deps1 deps2)
Returns the one with higher version
Returns the one with higher version
(get-dependencies package-json)
(load-package-json dir)
Read the package.json from dir. Returns the content of a file as a clojure map. Params:
dir
the directory of the applicationRead the package.json from dir. Returns the content of a file as a clojure map. Params: * `dir` the directory of the application
(package-json-path app-dir)
(write-package-json target-dir content)
Saves package-json content to a json file in target-dir
with content
.
Saves package-json content to a json file in `target-dir` with `content`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close