Skip to content
/ node-ccmf Public

A library for generating or using coord-to-coord mapping files

Notifications You must be signed in to change notification settings

tafa/node-ccmf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Status: pre-alpha

A library for generating or using coord-to-coord mapping files.

Installing / Developing

cd node-ccmf; npm link

Creating CCMF files

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)

Using CCMF files

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: 
            }
        }

About

A library for generating or using coord-to-coord mapping files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published