0.1.8 • Published 4 months ago

is-file-esm-ts v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

is-file-esm-ts

Checks if a file will be executed in an ESM environment by Node.js.

Usage

First, install is-file-esm-ts from your favorite package manager:

npm install is-file-esm-ts

Then, import it and use it in your project:

import { isFileEsm, isFileEsmSync } from 'is-file-esm-ts'

console.log(await isFileEsm('/absolute/path/to/file'))
console.log(isFileEsmSync('/absolute/path/to/file'))
0.1.8

4 months ago

0.1.7

4 months ago

0.1.4

4 months ago

0.1.3

4 months ago

0.1.6

4 months ago

0.1.5

4 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.1.0

1 year ago

0.0.2

1 year ago