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

ableton

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ableton

Parser for Ableton Live's .als format

  • 0.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-62.5%
Maintainers
1
Weekly downloads
 
Created
Source

Ableton Build Status

Parser for Ableton Live's .als file format.

Intro

Ableton project files are just XML underneath, so the parser returns a Cheerio object for the project file. You can then use all the normal jQuery commands to get the data out.

Install

$ npm install --save ableton

Use

Initialise

var Ableton = require('ableton');
var ableton = new Ableton('/path/to/project.als');

Read

ableton.read(function(error, $) {
  if (error) {
    console.error(error);
  }
  else {
    // `$` is the Cheerio root object.
    console.log($('ableton').attr('creator'));
  }
});

Write

var xml = ... // An XML string representing an Ableton project file.
ableton.write(xml, function(error) {
  if (error) {
    console.log(error);
  }
  else {
    console.log('Written successfully to ' + ableton.path);
  }
});

License

MIT

Keywords

FAQs

Package last updated on 09 May 2015

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