Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"console.log": {
"prefix": "c",
"body": [
"console.log('$1', ${2:$1});"
]
},
"import": {
"prefix": "imp",
"body": [
"import $1 from '${1/([a-z])([A-Z])/$1-${2:/downcase}/g}';"
]
},
"require": {
"prefix": "req",
"body": [
"const $1 = require('${2:$1}');"
]
},
"export": {
"prefix": "exp",
"body": [
"export ${1:default} $0;"
]
},
"arrow function": {
"prefix": "f",
"body": [
"($1) => {2:{}};"
]
},
"anonymous function": {
"prefix": "fn",
"body": [
"function($1) {",
" $0",
"};"
]
},
"named function": {
"prefix": "fun",
"body": [
"function $1($2) {",
" $0",
"};"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.