Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ssense/flip

Package Overview
Dependencies
Maintainers
15
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ssense/flip

A React to Vue Component Transpiler

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
increased by1000%
Maintainers
15
Weekly downloads
 
Created
Source

Flip

🔄 Transform React to Vue! 🔄

Flip is great for teams migrating from react to vue, or projects that want to employ micro front ends using both technologies.

It will consume your React components, and generate out a new directory full of Vue components.

Optionally, you can also roll them into one nice exported bundle per framework (i.e - bundle.react.js, bundle.vue.js) 📦

Flip initially started as a fork of this babel plugin and still uses a modified version of it under the hood.

How to use

yarn add -D @ssense/flip

To use, run

yarn flip [path-to-your-components]

This command also accepts an optional -b flag, which will rollup bundles of each your react and vue components for distribution. This is how that will look:

yarn flip [path-to-your-components] -b

and it will generate the following folder structure:

 - dist
 | - react
    | - button
    | - form
 | - vue
    | - button
    | - form
 | - bundles
    | - bundle.react.js
    | - bundle.vue.js

Styling

While not necessary, flip is compatible with styled-components (it even handles remapping the react/vue styled component import 😎)

Contributing

Please read our contribution guide for details on the development process, and the process for submitting a pull request

With any contribution, you accept all conditions implicitly defined in the Code of Conduct.

License

This project is licensed under the MIT License - see the LICENSE.md for more details

Authors

Quinn Langille - email

Keywords

FAQs

Package last updated on 17 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc