
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
node-r3trans
Advanced tools
Node.js wrapper for SAP R3Trans.
npm install node-r3trans
Start by importing the library and instantiating an object. If your transport is in a folder, you can pass the path as a string, like this:
const R3Trans = require('node-r3trans');
const transport = new R3Trans('C:\\R3Trans\\R904009.RST');
If your transport is a buffer:
const R3Trans = require('node-r3trans');
const trBuffer = fs.readFileSync('C:\\R3Trans\\R904009.RST');
const transport = new R3Trans(trBuffer);
Optionally, you can also pass an object containing these values:
const R3Trans = require('node-r3trans');
const transport = new R3Trans('C:\\R3Trans\\R904009.RST', {
r3transHome: 'C:\\R3Trans' //Folder where R3Trans is placed, defaults to enviroment variable R3TRANS_HOME
tmpFolderPath: 'C:\\R3Trans' //Folder where all temporary files are generated before being deleted, defaults to r3trans home. must have write access
});
const R3Trans = require('node-r3trans');
const transport = new R3Trans('C:\\R3Trans\\R904009.RST');
transport.isValid().then(valid => {
if(valid){
console.log('OK');
}else{
console.log('NOT VALID');
}
}).catch(e => {
console.error(e);
});
const R3Trans = require('node-r3trans');
const transport = new R3Trans('C:\\R3Trans\\R904009.RST');
transport.getTableEntries('TADIR').then(objects => {
console.log(JSON.stringify(objects.map(o => `${o.R3TR} ${o.OBJECT} ${o.OBJ_NAME}`)));
}).catch(e => {
console.error(e);
});
const R3Trans = require('node-r3trans');
const transport = new R3Trans('C:\\R3Trans\\R904009.RST');
transport.getTableEntries().then(objects => {
console.log(JSON.stringify(objects.map(o => `${o.R3TR} ${o.OBJECT} ${o.OBJ_NAME}`)));
}).catch(e => {
console.error(e);
});
FAQs
NodeJs wrapper for SAP R3trans program
The npm package node-r3trans receives a total of 72 weekly downloads. As such, node-r3trans popularity was classified as not popular.
We found that node-r3trans demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.