File: index.cjs

package info (click to toggle)
node-execa 8.0.1%2Bdfsg1%2B~cs12.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,588 kB
  • sloc: javascript: 2,940; makefile: 11; sh: 1
file content (22 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const { execa, execaSync, execaCommand, execaCommandSync, execaNode } = require("./execa.cjs");

const res = (...args) => {
    return execa(...args);
}

// old API
res.sync = execaSync;
res.command = execaCommand;
res.commandSync = execaCommandSync;
res.node = execaNode;

// compatibility
res.execa = execa;

// new API
res.execaSync = execaSync;
res.execaCommand = execaCommand;
res.execaCommandSync = execaCommandSync;
res.execaNode = execaNode;

module.exports = res;