0.1.8 • Published 2 years ago

is-file-esm-ts v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

0.1.7

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

3 years ago

0.0.2

3 years ago