Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsxbin

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsxbin

Convert jsx ExtendScript files into jsxbin files using ExtendScript Toolkit

  • 1.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
230
decreased by-6.5%
Maintainers
1
Weekly downloads
 
Created
Source

jsxbin

Convert jsx ExtendScript files into jsxbin files using ExtendScript Toolkit (ESTK)

Example

const jsxbin = require( 'jsxbin' )

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

(You have to have ExtendScript Toolkit installed for this package to work.)

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 can be:

  • String path for what to name converted file. path/to/script.jsxbin
    • Should only be used when passing only one file as inputPaths
  • String path to folder where converted file will be placed. path/to/output

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

Examples

// Just one file
jsxbin( 'script.jsx', 'script.jsxbin' )

// Multiple files
jsxbin( [ 'script1.jsx', 'script2.jsx' ], 'output/' )

// Using glob string for input
jsxbin( 'src/*.jsx', 'output' )

From the Command Line

This package also ships with a jsxbin command.

jsxbin

  usage: jsxbin -i file1.jsx, file2.jsx.. -o outputdir
  usage: jsxbin -i file1.jsx -o outputname.jsxbin

  Converts Extendscript .jsx files into jsxbin files using ExtendScript Toolkit

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.

Keywords

FAQs

Package last updated on 24 Apr 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc