All Projects → runegan → jsxbin

runegan / jsxbin

Licence: MIT license
Convert jsx ExtendScript files into jsxbin files using ExtendScript Toolkit

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to jsxbin

quickExp
a script for controlling expressions quickly in After Effects
Stars: ✭ 24 (-67.12%)
Mutual labels:  extendscript, after-effects
quickSRT
generating .srt(subtitles) in After Effects
Stars: ✭ 24 (-67.12%)
Mutual labels:  extendscript, after-effects
DuAEF
Duduf After Effects Framework
Stars: ✭ 20 (-72.6%)
Mutual labels:  extendscript, after-effects
ovid-editor
Adobe panel providing the most advanced scripting environment possible -- Typescript, app DOM autocomplete, full I/O features and more
Stars: ✭ 43 (-41.1%)
Mutual labels:  extendscript, after-effects
AE-Icon
🐱 use bodymovin to render some interesting After Effects vector icon
Stars: ✭ 47 (-35.62%)
Mutual labels:  after-effects
photoshop-react-redux-ramda
🎨😱💀⚛️
Stars: ✭ 24 (-67.12%)
Mutual labels:  extendscript
Photoshop-Scripts
A collection of Photoshop scripts.
Stars: ✭ 53 (-27.4%)
Mutual labels:  extendscript
adobe-illustrator-layer-renamer
Adobe Illustrator script to batch rename layers.
Stars: ✭ 40 (-45.21%)
Mutual labels:  extendscript
AEScript-Explode-Shape-Layer
Extract shapes from a shape layer to individual layers
Stars: ✭ 37 (-49.32%)
Mutual labels:  after-effects
adobe-discord-rpc
Discord Rich Presence extension for your adobe apps!
Stars: ✭ 383 (+424.66%)
Mutual labels:  after-effects
adobe-scripts
Drafts and unsorted JSX scripts for Adobe Illustrator, Photoshop
Stars: ✭ 29 (-60.27%)
Mutual labels:  extendscript
extendscript snippets
js, jsx, jsxbin snippets for InDesign, Illustrator, Photoshop
Stars: ✭ 35 (-52.05%)
Mutual labels:  extendscript
adobe-cep-react-create
Create Adobe-CEP extension with React, Material-UI, Native Node modules, Webpack, Babel and ExtendScript
Stars: ✭ 95 (+30.14%)
Mutual labels:  extendscript
babel-preset-extendscript
Babel preset for transpiling ES2015 and modern JS conventions to ES3.
Stars: ✭ 35 (-52.05%)
Mutual labels:  extendscript
ai-merge
Import your SVG, AI, EPS, and PDF files into a single Illustrator document.
Stars: ✭ 65 (-10.96%)
Mutual labels:  extendscript
ExtendScript-for-Visual-Studio-Code
Extension that adds Adobe ExtendScript support to Visual Studio Code
Stars: ✭ 29 (-60.27%)
Mutual labels:  extendscript
extendscript-starter
Starter project for extendscript-bundler + live reload capabilities
Stars: ✭ 26 (-64.38%)
Mutual labels:  extendscript
ExtendScript
🍆 Getting started with ExtendScript ✨ by Jeff Davis
Stars: ✭ 23 (-68.49%)
Mutual labels:  extendscript
AE-Slicer
Save PNG slices in AE. Support multiple slice zones in one comp.
Stars: ✭ 21 (-71.23%)
Mutual labels:  after-effects
Indentz
Collection of InDesign scripts for simple and repetitive tasks.
Stars: ✭ 23 (-68.49%)
Mutual labels:  extendscript

jsxbin

Convert jsx ExtendScript files into jsxbin

Example

const jsxbin = require( 'jsxbin' )

jsxbin( 'path/to/script.js', 'output/script.jsxbin' )
	.then( outputfiles => {
		console.log( 'Finished!' )
	})
	.catch( err => {
		console.error( err )
	})

Methods

jsxbin( inputPaths, [outputPath] )

inputPaths can be:

  • String with path to jsx file. script.jsx
  • String with glob pattern that matches jsx/js files. *.jsx
  • Array of any of the above

outputPath, optional, can be:

  • String path to converted file. path/to/script.jsxbin
    • Should only be used when passing only one file as inputPaths
  • String path to converted file directory. path/to/output
  • Array of string paths of names for all converted files
    • Should only be used when passing an array to inputPaths. Input and output arrays must be the same length.
  • If not given, the files will be created in the same directory as the input file(s)

jsxbin returns a promise with an array of file paths to the converted files

Examples

// 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' )
})

From the Command Line

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

Install

with npm do:

npm install jsxbin

to get the function, or

npm install jsxbin -g

to get the command.

Contributing

Issues and pull requests are more than welcome! Please ensure you have tests for your pull requests, and that npm test passes.

License

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)

Thanks

  • The implemention using VSCode ES debugger from Adobe was added by Sammarks
  • Thanks to RenderTom and Zlovatt for additional contributions
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].