Liking cljdoc? Tell your friends :D

orchard.namespace

Utilities for resolving and loading namespaces.

Operations are parallel wherever it makes sense and it's safe to do so; efficiency matters particularly for large projects/classpaths.

Utilities for resolving and loading namespaces.

Operations are parallel wherever it makes sense and it's safe to do so;
efficiency matters particularly for large projects/classpaths.
raw docstring

canonical-sourceclj

(canonical-source ns)

Returns the URL of the source file for the namespace object or symbol, according to the canonical naming convention, if present on the classpath.

Returns the URL of the source file for the namespace object or symbol,
according to the canonical naming convention, if present on the classpath.
sourceraw docstring

classpath-namespacesclj

(classpath-namespaces)
(classpath-namespaces classpath-urls)

Returns all namespaces defined in sources on the classpath or the specified classpath URLs.

Returns all namespaces defined in sources on the classpath or the specified
classpath URLs.
sourceraw docstring

ensure-namespacecljdeprecated

(ensure-namespace ns)

Renamed - please use #'ensure-namespace! instead.

Renamed - please use `#'ensure-namespace!` instead.
sourceraw docstring

ensure-namespace!clj

(ensure-namespace! ns)

Require ns (no-op if already loaded). Return the symbol if successful, and nil if this fails.

Require `ns` (no-op if already loaded). Return the symbol if successful,
and `nil` if this fails.
sourceraw docstring

has-tests?clj

(has-tests? ns)

Returns a truthy value if the namespace has any vars with :test metadata.

Returns a truthy value if the namespace has any vars with `:test` metadata.
sourceraw docstring

in-project?clj

(in-project? url)

Whether the URL is in the current project's directory.

Whether the URL is in the current project's directory.
sourceraw docstring

inlined-dependency?clj

(inlined-dependency? namespace)

Returns true if the namespace matches one of our, or eastwood's, inlined dependencies.

Returns true if the namespace matches one of our, or eastwood's,
inlined dependencies.
sourceraw docstring

internal-namespace?clj

(internal-namespace? namespace & [prefixes])

Returns true if the namespace matches the given prefixes.

Returns true if the namespace matches the given prefixes.
sourceraw docstring

jvm-clojure-resource-name->ns-nameclj

(jvm-clojure-resource-name->ns-name resource-name)

Given a .clj or .clj resource-name, returns its namespace name.

Given a .clj or .clj `resource-name`, returns its namespace name.
sourceraw docstring

load-project-namespacesclj

(load-project-namespaces)

Require and return all namespaces validly defined in the current project.

Require and return all namespaces validly defined in the current project.
sourceraw docstring

loaded-namespacesclj

(loaded-namespaces & [filter-regexps])

Returns all loaded namespaces, except those coming from inlined dependencies. filter-regexps is used to filter out namespaces matching regexps.

Returns all loaded namespaces, except those coming from inlined dependencies.
`filter-regexps` is used to filter out namespaces matching regexps.
sourceraw docstring

loaded-project-namespacesclj

(loaded-project-namespaces)

Return all loaded namespaces defined in the current project.

Return all loaded namespaces defined in the current project.
sourceraw docstring

project-namespacesclj

(project-namespaces)

Returns all namespaces defined in sources within the current project.

Returns all namespaces defined in sources within the current project.
sourceraw docstring

project-rootclj

source

read-namespaceclj

(read-namespace url)

Returns the namespace name from the first top-level ns form in the file.

Returns the namespace name from the first top-level `ns` form in the file.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close