UNPKG

madrun

Version:

CLI tool to run multiple npm-scripts in a madly comfortable way

15 lines (10 loc) 245 B
'use strict'; const tryCatch = require('try-catch'); module.exports = (runners) => { for (const run of Object.keys(runners)) { const [e] = tryCatch(run); if (e) return e; } return null; };