Last active
September 17, 2018 23:12
-
-
Save jacobgarcia/b1d380a2ed503b81156fff7549e1be3e to your computer and use it in GitHub Desktop.
Snippets for Atom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'.source.js': | |
'Models Imports': | |
'prefix': 'modelimport' | |
'body': 'const $1 = require(path.resolve("models/$1"))' | |
'Return Error': | |
'prefix': 'return-error' | |
'body': 'if (error) { \n console.log($1, error) \n return res.status(500).json({ error: { message: $1 } })}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment