UNPKG
xnr
Version:
latest (3.2.2)
3.2.2
3.2.1
3.2.0
3.1.0
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
3.0.0-beta.2
3.0.0-beta.0
2.0.1
2.0.0-beta.0
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.1
1.0.0
0.4.0-beta.2
0.4.0-beta.1
0.4.0-beta.0
0.3.2
0.3.1
0.3.0-alpha.1
0.2.1
0.2.0
0.1.1
0.1.0
0.0.1-beta.1
0.0.1-alpha.5
0.0.1-alpha.4
0.0.1-alpha.3
0.0.1-alpha.2
0.0.1-alpha.1
0.0.1-alpha
Easily, quickly and reliably run a Node.js script from the CLI.
github.com/tbjgolden/xnr
xnr
/
dist
/
jest.js
10 lines
(9 loc)
•
305 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{ transform }
from
"./lib/index.js"
;
const
transformer = {
canInstrument
:
false
,
process
:
(
inputCode
) =>
({
code
: inputCode }),
processAsync
:
async
(inputCode, filePath) => {
return
{
code
:
await
transform
({
code
: inputCode, filePath }) }; }, };
export
default
transformer;