API reference
/context-storage
@senrijs/senri/context-storage: Getting c from anywhere
Getting c from anywhere.
import { ... } from "@senrijs/senri/context-storage";Functions and classes
| Name | What it does |
|---|---|
contextStorage() | Middleware that remembers c |
getContext() | Gets the current c (throws if there is none) |
tryGetContext() | Gets the current c (undefined if there is none) |