ack-types lookup for node
JavaScript
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

ack-types

Build Status

lookup ack type by filename

usage

var acktypes = require('ack-types')

// acktypes is an object mapping file extension to type

acktypes.compare(filename, type) // true or false
acktypes.lookup(filename) // type or array of types
acktypes.reverseLookup(type) // array of extensions associated with type
acktypes.allExtensions() // array of all extensions known

license

MIT