You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For info on using tools.deps.edn as a library, see:
44
+
## Reading, validating, and canonicalization
45
+
46
+
Usually, you should use the `read-deps` function to read a deps.edn file, validate, and canonicalize it:
47
+
48
+
* (read-deps f & opts) - coerce f to a File, then read, validate, canonicalize and return a deps.edn map
49
+
50
+
However, these component functions may also occasionally be useful:
51
+
52
+
* (read-edn r & opts)` - reads a single edn value from a Reader r
53
+
* (validate deps-edn & opts) - validate a deps.edn map against the specs and throw or return the valid map
54
+
* (canonicalize deps-edn & opts) - canoncialize a deps.edn map and return it
55
+
56
+
## Deps chain
57
+
58
+
These functions are available to get individual or multiple of the standard deps.edn maps in the chain:
59
+
60
+
* ([root-deps](https://clojure.github.io/tools.deps.edn/#clojure.tools.deps.edn/root-deps)) - return the root deps read as a resource
61
+
* ([user-deps-path](https://clojure.github.io/tools.deps.edn/#clojure.tools.deps.edn/user-deps-path)) - calculate the path to the user deps.edn
62
+
* ([user-deps](https://clojure.github.io/tools.deps.edn/#clojure.tools.deps.edn/user-deps)) - use `user-deps-path`, then read and return it (or nil if none exists)
63
+
* ([project-deps-path](https://clojure.github.io/tools.deps.edn/#clojure.tools.deps.edn/project-deps-path)) - calculate the path to the project deps.edn, using the dir context as the current directory
64
+
* ([project-deps](https://clojure.github.io/tools.deps.edn/#clojure.tools.deps.edn/project-deps)) - use `project-deps-path`, then read and return it (or nil if none exists)
65
+
* ([create-edn-maps](https://clojure.github.io/tools.deps.edn/#clojure.tools.deps.edn/create-edn-maps)) ([create-edn-maps](https://clojure.github.io/tools.deps.edn/#clojure.tools.deps.edn/create-edn-maps) params-map) - takes optional map of location sources and returns a map of the root, user, project, and extra deps.edn maps
66
+
67
+
## Data manipulation
68
+
69
+
These functions can be used to modify or extract information from a deps.edn map:
* ([merge-edns](https://clojure.github.io/tools.deps.edn/#clojure.tools.deps.edn/merge-edns) deps-edn-maps) - merge multiple deps.edn maps in a chain
72
+
* ([merge-alias-maps](https://clojure.github.io/tools.deps.edn/#clojure.tools.deps.edn/merge-alias-maps)) - like merge-with, for merging alias maps with per-key rules
73
+
* ([combine-aliases](https://clojure.github.io/tools.deps.edn/#clojure.tools.deps.edn/combine-aliases)) - find, read, and combine alias maps identified by alias keywords from
0 commit comments