UNPKG

zapier-platform-cli

Version:

The CLI for managing integrations in Zapier Developer Platform.

13 lines (9 loc) 274 B
const path = require('path'); function splitFileFromPath(filePath, extension = 'js') { const { name, base, dir, ext } = path.parse(filePath); const filename = ext ? base : `${name}.${extension}`; return [dir, filename]; } module.exports = { splitFileFromPath, };