Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 519 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 519 Bytes

FL Studio Project File Parser

Usage

File API

var flp = require('flp');

flp.parseFile("project.flp", function(err, projectInfo) {
  if (err) throw err;
  console.log(projectInfo);
});

Stream API

var flp = require('flp');
var fs = require('fs');

// or use flp.createParserChild to use a subprocess
var parser = flp.createParser();

parser.on('end', function(project) {
  console.log(project);
});

var inStream = fs.createReadStream("my-cool-project.flp");

inStream.pipe(parser);