UNPKG
postapl
Version:
latest (1.3.0)
1.3.0
1.2.0
1.1.0
1.0.0
0.2.0
0.1.0
Tool for transforming APL with JS plugins
github.com/postapl/postapl
postapl/postapl
postapl
/
lib
/
postapl.js
14 lines
(10 loc)
•
262 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict'
const
Processor
=
require
(
'./processor'
);
function
postapl
(
...plugins
) {
if
(plugins.
length
===
1
&&
Array
.
isArray
(plugins[
0
])) { plugins = plugins[
0
] }
return
new
Processor
(plugins) }
module
.
exports
= postapl postapl.
default
= postapl