const enigne = new Migration();
engine.input({ num: 1 });
engine.version(1).up((data) => ({ ...data, str: "add props" }));
console.log(engine.data);
// return {num: 1, str: 'add props'}
console.log(engine.get());
// return {__meta: {version: 1, updated_at: '2025-01-06T00:01:46.170Z'}, __data: {num: 1, str: 'add props'}}
-
Notifications
You must be signed in to change notification settings - Fork 0
License
LegGnom/json-migration
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published