shelljs/plugin.js
Andreas Deininger 626973367f
Fixing typos (#1137)
This PR fixes a few typos that I spotted in the project.
2023-11-12 21:06:23 -08:00

17 lines
480 B
JavaScript

// Various utilities exposed to plugins
require('./shell'); // Create the ShellJS instance (mandatory)
var common = require('./src/common');
var exportedAttributes = [
'error', // For signaling errors from within commands
'parseOptions', // For custom option parsing
'readFromPipe', // For commands with the .canReceivePipe attribute
'register', // For registering plugins
];
exportedAttributes.forEach(function (attr) {
exports[attr] = common[attr];
});