node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…


A javascript module for manipulating SMPTE tiemcode.


This is a javascript module for manipulating SMPTE timecode.

It is primarily based on pytimecode.

Theoretically it supports 60, 59.94, 50, 30, 29.97, 25, 24, 23.98 frame rates as well as milliseconds, although only 29.97 (drop and non-drop) and 23.98 have been tested. Timecodes can be created from a number representing the frame count or a string in the form "hh:mm:ss:ff".

> var timecode = require("timecode").Timecode;
> var tc = timecode.init({framerate: "29.97", timecode: "01:00:00:00"});
> tc.add(4);
> tc.add("00:02:03:00");
> tc.toString();
$ npm install -g nodeunit
$ nodeunit test