mirror of
https://github.com/apple/pkl.git
synced 2026-03-17 23:03:54 +01:00
14 lines
671 B
Plaintext
14 lines
671 B
Plaintext
= Standard Library
|
|
include::../partials/component-attributes.adoc[]
|
|
|
|
The standard library is a set of Pkl modules, versioned and distributed together with the language.
|
|
It is documented in the link:{uri-pkl-stdlib-docs-index}[API Docs].
|
|
|
|
To import a standard library module, use `import "pkl:<identifier>"`.
|
|
For example, `import "pkl:json"` imports the `pkl.json` module.
|
|
|
|
The `pkl.base` module defines the most fundamental properties, methods, and classes for using Pkl.
|
|
Its members are automatically available in every module and hence, it does not need to be imported.
|
|
|
|
The default module allowlist (`--allowed-modules`) grants access to all standard library modules.
|