aws-sdk-js-codemod
Version:
Collection of codemod scripts that help update AWS SDK for JavaScript APIs
8 lines (7 loc) • 349 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCommandName = void 0;
// Returns the command name for a given API name
// Example input `getObject` returns `GetObjectCommand`
const getCommandName = (apiName) => `${apiName[0].toUpperCase()}${apiName.slice(1)}Command`;
exports.getCommandName = getCommandName;