node-traktor

scripts for working with traktor files

Usage no npm install needed!

<script type="module">
  import nodeTraktor from 'https://cdn.skypack.dev/node-traktor';
</script>

README

node-traktor

stability - experimental

scripts for working with traktor files

api

traktor.locate(cb)

calls back node-style with the path to a traktor root folder.

also usable on the command line (traktor locate)

traktor.Collection

collection.load(source) -> this

source can be

  • a filepath that points to a collection.nml
  • an object that represents a collection file

returns a promise that resolves with the collection when it has been loaded

collection.entries() -> Array

returns a list of entry items that represent music files

collection.toXML() -> xml_string

returns an xml string representation of the current tree

license

MIT