Sign up to receive SuiteScript examples and advice directly in your email inbox.

Script Templates for SuiteScript 2.0

Created: May 10, 2017

This week's theme on Effective SuiteScript is the introduction of 2.0 modules. Particularly if you've watched the videos for the series so far, you've likely noticed I have to do a ton of repetitive typing for the boilerplate involved with 2.0. I have to repeatedly type the JSDoc, the require statement, and the return statement for the module.

Wouldn't it be nice if there were some templates one could use?

As it turns out, there are! I've created two separate sets of templates, one for each of the two most common IDEs used for NetSuite development (Eclipse and WebStorm). You can find the repositories, along with instructions for installing and using the templates, here:

You can then customize them to your own liking.