
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
@42technologies/netsuite-js
Advanced tools
A Node wrapper for the NetSuite SOAP API.
$ npm install --save netsuite-js
var NetSuite = require('netsuite-js');
var credentials = {
"email": "test@test.com",
"password": "password",
"account": 123456,
"role": 3
};
var config = new NetSuite.Configuration(credentials);
var service = new NetSuite.Service(config);
service
.init()
.then(function(/*client*/) {
console.log('WSDL processed. Service description:');
console.log(service.config.client.describe());
var recordRef = new NetSuite.Records.RecordRef();
recordRef.internalId = 5084;
recordRef.type = 'employee';
console.log('Getting Employee record');
return service.get(recordRef);
})
.then(function(result, raw, soapHeader) {
if (result.readResponse.status.$attributes.isSuccess !== 'true') {
console.error('Error');
console.error(result.readResponse.status.statusDetail);
}
console.log(result);
console.log('Last Request:');
console.log(service.config.client.lastRequest);
})
.catch(function(err) {
console.error(err);
});
example/credentials.json.sample
to example/credentials.json
node example/simple.js
or other examplesYou can find autogenerated docs at: http://crosslead.github.io/netsuite-js/docs/lib/index.js.html
The autogenerated docs are created via the gulp docs
task and pushed to the gh-pages
branch.
(More examples of end-to-end usage scenarios coming soon)
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using gulp.
Copyright (c) 2015 McChrystal Group. Licensed under the Apache license.
FAQs
A Node wrapper for the NetSuite SOAP API.
The npm package @42technologies/netsuite-js receives a total of 0 weekly downloads. As such, @42technologies/netsuite-js popularity was classified as not popular.
We found that @42technologies/netsuite-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
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.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.