Skip to content

adobe extendscript’s output to nodejs readable stream

Notifications You must be signed in to change notification settings

alimoosavi15/extendscript-stream2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

extendscript-stream2

adobe extendscript's output to nodejs readable stream

install

npm install extendscript-stream2

example

var fs = require('fs');
var extendScriptStream = require('.');
var jsxPath = [__dirname,'test','test.jsx'].join('/');

extendScriptStream(jsxPath).pipe(fs.createWriteStream(__dirname+'/out.txt'));

// in objectMode
var through = require('through');
var filter = through(function write(data){
  var val = data.val;
  var len = val.length.toString();
  this.queue(len);
},function end(){
  this.queue(null);
});
extendScriptStream.obj(jsxPath).pipe(filter).pipe(process.stdout);

About

adobe extendscript’s output to nodejs readable stream

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%