Skip to content

Instantly share code, notes, and snippets.

rename -f 's/([a-z]{1})([a-zA-Z]*).jsx/\U$1\E$2.jsx/' */*.jsx
@Zuytan
Zuytan / gist:a95a6ec301a137cbce077130ec60a213
Created July 20, 2021 12:41
RegExp ES4 -> ES6 - Require/import
const (?<name>[a-zA-Z1-9\{\} ,]+) = require\('(?<file>[a-zA-Z0-9\-/\.]+)'\)
import $1 from '$2'

Keybase proof

I hereby claim:

  • I am zuytan on github.
  • I am zuytan (https://keybase.io/zuytan) on keybase.
  • I have a public key ASAhiTAKjbfKuHi-xgxYYBhqNpDlL5uJGEPRqUgL1yYckQo

To claim this, I am signing this object: