Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>NodeJsSnippetsNew to Visual Studio Code? Get it now.
NodeJsSnippets

NodeJsSnippets

Pradyumna Patil

|
6,275 installs
| (1) | Free
Simple NodeJs snippets
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

NodeJs README

After writing up a brief description, we recommend including the following sections. If you have any queries you can ask them at https://marketplace.visualstudio.com/items?itemName=Prady.nodejs&ssr=false#review-details

DEMO FOR EXTENSION

BASIC REQUIRE SNIPPETS

Prefix              Description
----------------------------------------------------------------
re                 Syntax for require express
fs                 Syntax for require fs
rbp                Syntax for require body-parser  
rcp                Syntax for require cookie-parser
rcs                Syntax for require cookie-session
rcors              Syntax for require cors
rmo                Syntax for require method-override
rmul               Syntax for require multer
rp                 Syntax for require passport
rpl                Syntax for require passport-local
rplm               Syntax for require passport-local-mongoose
rm                 Syntax for require mongoose
rnm                Syntax for require nodemailer
rgridfs            Syntax for require multer-gridfs-storage

SYNTAX FOR CODE TEMPLATES

Prefix                  Description
----------------------------------------------------------------
Server                  This will create a starter template of app.js.
MDB                     Database connection syntax
AppGet                  Creates a GET method in App.js
AppPost                 Creates a POST method in App.js
AppPut                  Creates a PUT method in App.js
AppDelete               Creates a DELETE method in App.js
RouteGet                Creates a GET method in Route.js
RoutePost               Creates a POST method in Route.js
RoutePut                Creates a PUT method in Route.js
RouteDelete             Creates a DELETE method in Route.js
ModelUser               User Auth Model Boilerplate
RouteAuth               Boilerplate of Authentication Route
AppAuth                 Boilerplate of PassportJs Setup
RouteBody               Creates a boilerplate code for Route.js
ModelBody               Creates a boilerplate code for Route.js
EmailNodemailer         Creates a boilerplate for Nodemailer
GoogleOAuthStrategy     Boilerplate of Google OAuth Strategy
FacebookOAuthStrategy   Boilerplate of Facebook OAuth Strategy
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft