A library for generating or using coord-to-coord mapping files.
cd node-ccmf; npm link
CCMF = require('CCMF'); CCMF.write_ccmf(stream, info, linemaps, fileinfos, mappings) CCMF.ccmf_string(stream, info, linemaps, fileinfos, mappings)
CCMFH-style file info lines will be created iff any fileinfo in fileinfos has any properties.
([{...}]\n
instead of []\n
)
ccmf = CCMF.fromStream(x, callback) ccmf = CCMF.from{String,Buffer}(x) ccmf.lookup(line, col) Result: null or { # You'll get as many of these fields and subfields as possible. line: col: label: file: { sha1: name: path: url: } }