ack-types

ack type lookup

Usage no npm install needed!

<script type="module">
  import ackTypes from 'https://cdn.skypack.dev/ack-types';
</script>

README

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