My favorite JS snippets for (neo)vim!
const Op = require('sequelize').Op
$1: {
[Op.eq]: $2
}
$1: {
[Op.in]: $2
}
ObjectId($1)
const ObjectId = require('mongoose').Types.ObjectId
JSON.stringify($1, null, 2)
JSON.parse($1)
hasOwnProperty($1)
module.exports = $0
exports $0
const $1 = require('$1')
import $1 from $2
import { $1 } from $2
console.log($1)
console.error($1)
console.warn($1)
const $1 = $0
let $1 = $0
if ($1) {
${0:${VISUAL}}
}
function $1 ($2) {
${0:${VISUAL}}
}
($1) => {
${0:${VISUAL}}
}
$1.prototype.$2 = function $2 ($4) {
${0:${VISUAL}}
}
describe('$1', () => {
${0:${VISUAL}}
})
it('$1', () => {
${0:${VISUAL}}
})
test('$1', () => {
${0:${VISUAL}}
})