@wtf/platform-docs
v3.3.0
Published
Guides and API reference for @wtf/platform: write programs that take their timers, crypto, console, file system, processes and environment as a parameter, so they run the same in Node, in a browser and in a test.
Readme
@wtf/platform-docs
Guides and API reference for @wtf/platform: write programs that take their timers, crypto,
console, file system, processes and environment as a parameter, so they run the same in Node, in
a browser and in a test.
- Getting started: learn which members a platform has, get one in Node, in a page, in memory and in a test, start a process, use the helpers, load a module by its name, and handle errors.
- The environment: read environment variables as a value you pass around, combine them, and parse them into typed settings.
- Files and folders: get a folder handle wherever your code runs, read and write its files, reach a platform's files by their paths, and read and write a file synchronously.
| Path | |
| --------------- | ---------------------------------- |
| api/llms.txt | a map of the reference, for agents |
| api/README.md | the API reference of every package |
The package's default export is its own URL, so in Node you can read a page with
new URL('guides/getting-started.md', docs). pnpm run docs at the root of the repo generates
api/.
