axios-url-template

JSON →
library 1.0.3 ·javascript
verified Jun 7, 2026

Axios interceptor that adds RFC 6570 URI Template support, allowing dynamic URL construction via urlTemplate and urlTemplateParams config fields. Version 1.0.3 ships TypeScript types and wraps the url-template library. Key differentiators: works as a request interceptor, persists both the template and params in the Axios config after expansion, and supports a urlAsTemplate option that treats the plain url field as a template by default. It has a small install size and is designed for automating low-cardinality route logging or metrics.