UNPKG

nsmockup

Version:

Test your Suitescripts before deploying to NetSuite

16 lines (15 loc) 591 B
'use strict'; /** * Instantiate a file object (specifying the name, type, and contents which are base-64 encoded for binary types.) * @restriction Server SuiteScript only * * @param {string} name file name * @param {string} type file type i.e. plainText, htmlDoc, pdf, word (see documentation for the list of supported file types) * @param {string} contents string containing file contents (must be base-64 encoded for binary types) * @return {nlobjFile} * * @since 2009.1 */ exports.nlapiCreateFile = (name, type, contents) => { return new nlobjFile(name, type, contents); };