Vuex-ORM Date Attribute Plugin

JSON →
library 0.1.1 ·javascript
verified Jun 5, 2026

A plugin for Vuex-ORM that adds a `date` attribute type to model fields, automatically converting string/number values to JavaScript Date objects. Current stable version is 0.1.1. The plugin extends Vuex-ORM's field definition API with `this.date()` and handles serialization/deserialization. It is lightweight and has no runtime dependencies beyond Vuex-ORM. Unlike manual field transforms, it provides a declarative way to handle date attributes within Vuex-ORM's data layer.