Socket
Socket
Sign inDemoInstall

gulp-netsuite-uploader

Package Overview
Dependencies
3
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-netsuite-uploader

Gulp wrapper for netsuite-uploader to upload files to NetSuite.


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

gulp-netsuite-uploader

A gulp plugin for uploading to NetSuite

Upload files to NetSuite. Either choose a folder to put a new file, or (without choosing a folder) replace an existing file with the same name.

Recommended for use with gulp-watch.

Rewrite of https://github.com/dturton/gulp-nsupload to work with netsuite-uploader instead of nsupload.

Installation

Install and deploy the restlet included with netsuite-uploader. You'll need the script internal id for the config file.

You'll probably want to use the PUT verb for the function, although NetSuite doesn't allow you to be truly restful (no semantic URI), so use a POST if you like it better.

The upload function will return a stream handler, and must be called with the following properties:

  • email - The email address of an authorized user
  • password - The password for the same user
  • account - The netsuite account number (get from Setup > Integration > Webservices)
  • script - The script ID of the deployed restlet.
  • [folder] - Optional folder id to put the uploaded file in. If not included, replaces the first found existing file with the same name.
  • [domain] - Optional domain to use for the upload. Useful for continuous integration and automated releases to PRD. Defaults to rest.netsuite.com
  • [method] - Optional method that you deployed the restlet function to. Defaults to "PUT"

See below for an example gulpfile

var upload = require('gulp-netsuite-uploader');

gulp.src('foo.js').pipe(upload({
  email: 'a@example.com',
  password: 'password',
  account: 1234,
  script: 123,
  folder: 123456
}));

Keywords

FAQs

Last updated on 13 Jan 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc