0.1.8 • Published 1 year ago

is-file-esm-ts v0.1.8

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

1 year ago

0.1.7

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.2

2 years ago