jsxbin
将jsx ExtendScript文件转换为jsxbin
例子
const jsxbin = require ( 'jsxbin' )
jsxbin ( 'path/to/script.js' , 'output/script.jsxbin' )
. then ( outputfiles => {
console . log ( 'Finished!' )
} )
. catch ( err => {
console . error ( err )
} )
方法
jsxbin(inputPaths,[outputPath])
inputPaths可以是:
带有jsx文件路径的字符串。 script.jsx
具有与jsx / js文件匹配的glob模式的字符串。 *.jsx
以上任何一个的数组
outputPath (可选)可以是:
转换文件的字符串
1