1.0.8 • Published 2 years ago

deno-infer v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Infer (deno-wasm)

Deno wasm bindings to https://github.com/bojand/infer

https://www.npmjs.com/package/deno-infer

Should work with node as well

Usage

import * as infer from "npm:deno-infer";

const file = Deno.readFileSync("filePath");
const type = infer.get(file);
// or this convinient method that reads only the start of the file
// const type = infer.getFromPath(file); // requires Deno 1.37.3 if used from npm
console.log(type.extension());
console.log(type.matcherType());
console.log(type.mimeType());
1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago