type-file-extension

First, Install the `type-file-extension`, type in the terminal:

Usage no npm install needed!

<script type="module">
  import typeFileExtension from 'https://cdn.skypack.dev/type-file-extension';
</script>

README

type-file-extension npm package  npm version

Usage

First, Install the type-file-extension, type in the terminal:

$ npm install type-file-extension

Example

const typeFileExtension = require('type-file-extension');
console.log(typeFileExtension("hello.txt")); // hello