
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Convert jsx ExtendScript files into jsxbin files using ExtendScript Toolkit
Convert jsx ExtendScript files into jsxbin
const jsxbin = require( 'jsxbin' )
jsxbin( 'path/to/script.js', 'output/script.jsxbin' )
.then( outputfiles => {
console.log( 'Finished!' )
})
.catch( err => {
console.error( err )
})
inputPaths
can be:
script.jsx
*.jsx
outputPath
, optional, can be:
path/to/script.jsxbin
inputPaths
path/to/output
inputPaths
. Input and output arrays must be the same length.jsxbin
returns a promise with an array of file paths to the converted files
// Just one file
jsxbin( 'script.jsx', 'script.jsxbin' )
// Is the same as
jsxbin( 'script.jsx' )
// Multiple files
jsxbin([ 'script1.jsx', 'script2.jsx' ], 'output/' )
// Using glob string for input, jsxbin files will be placed in 'output/' dir
jsxbin( 'src/*.jsx', 'output' )
// With no output path specified, jsxbin files will be placed in the 'src/' dir
jsxbin( 'src/*jsx' )
// As a gulp task
gulp.task( 'jsxbin', () => {
return jsxbin( 'src/index.js', 'output/script.jsxbin' )
})
This package also includes a jsxbin
command than can be run from the command line.
jsxbin
usage: jsxbin -i file1.jsx, file2.jsx.. -o outputdir
usage: jsxbin -i file1.jsx -o outputname.jsxbin
Converts Extendscript .jsx files into jsxbin
Options
-i, --input file(s) The file or files to convert
-o, --output file|folder The file or folder where the converted file will be placed
-v, --verbose Show more info while running
--debug Show even more info while running
-h, --help Show help
with npm do:
npm install jsxbin
to get the function, or
npm install jsxbin -g
to get the command.
Issues and pull requests are more than welcome! Please ensure you have tests for your pull requests, and that npm test
passes.
This project is licensed under the MIT License - see the LICENSE.md file for details This project includes code from the Adobe Extendscript debugger extension for Visual Studio Code which uses the [Apache License, Version 2.0]*(http://www.apache.org/licenses/LICENSE-2.0)
FAQs
Convert jsx ExtendScript files into jsxbin files using ExtendScript Toolkit
The npm package jsxbin receives a total of 407 weekly downloads. As such, jsxbin popularity was classified as not popular.
We found that jsxbin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.