Collection of useful regex snippets that I make & want to preserve
Find: ^(async |)([^\( ]*)\(([^\)]*)\) \{
async getUserWithLogin(email, password) {
Replace: const $2 = $1($3) => {
const getUserWithLogin = async (email, password) => {
Find const ([^=]*)= require\((.*)\);
const express = require('express');
Replace: import $1from $2;
import express from 'express';