https://github.com/marko-js/migrate-v3-widget
Migrates a Marko v3 widget to a v4 component.
https://github.com/marko-js/migrate-v3-widget
Last synced: 4 months ago
JSON representation
Migrates a Marko v3 widget to a v4 component.
- Host: GitHub
- URL: https://github.com/marko-js/migrate-v3-widget
- Owner: marko-js
- License: mit
- Created: 2018-12-11T19:05:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T15:35:28.000Z (over 2 years ago)
- Last Synced: 2025-01-13T01:48:43.116Z (5 months ago)
- Language: TypeScript
- Size: 417 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
@marko/migrate-v3-widget
Migrates a Marko **v3 widget** to a **v4 component**.
_Note: You probably want to use the [marko migrate](https://github.com/marko-js/cli/blob/master/packages/migrate/README.md) command instead of using this directly._
# Installation
```console
npm install @marko/migrate-v3-widget
```# Example
```javascript
import migrate from "@marko/migrate-v3-widget";migrate("./path-to-widget-file.js").then(code => {
code; // Migrated code
});
```## Code of Conduct
This project adheres to the [eBay Code of Conduct](./.github/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.