├── .gitignore ├── .travis.yml ├── LICENSE ├── index.js ├── package.json ├── readme.md └── test ├── fixtures ├── type-bad-cjs │ ├── file.cjs │ └── package.json ├── type-bad-js │ ├── file.js │ └── package.json ├── type-bad-mjs │ ├── file.mjs │ └── package.json ├── type-commonjs-cjs │ ├── file.cjs │ └── package.json ├── type-commonjs-js │ ├── file.js │ └── package.json ├── type-commonjs-mjs │ ├── file.mjs │ └── package.json ├── type-module-cjs │ ├── file.cjs │ └── package.json ├── type-module-js │ ├── file.js │ └── package.json ├── type-module-mjs │ ├── file.mjs │ └── package.json ├── type-undefined-cjs │ ├── file.cjs │ └── package.json ├── type-undefined-js │ ├── file.js │ └── package.json └── type-undefined-mjs │ ├── file.mjs │ └── package.json └── index.js /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmarkclements/is-file-esm/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmarkclements/is-file-esm/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmarkclements/is-file-esm/HEAD/LICENSE -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmarkclements/is-file-esm/HEAD/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmarkclements/is-file-esm/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmarkclements/is-file-esm/HEAD/readme.md -------------------------------------------------------------------------------- /test/fixtures/type-bad-cjs/file.cjs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/type-bad-cjs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmarkclements/is-file-esm/HEAD/test/fixtures/type-bad-cjs/package.json -------------------------------------------------------------------------------- /test/fixtures/type-bad-js/file.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/type-bad-js/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmarkclements/is-file-esm/HEAD/test/fixtures/type-bad-js/package.json -------------------------------------------------------------------------------- /test/fixtures/type-bad-mjs/file.mjs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/type-bad-mjs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmarkclements/is-file-esm/HEAD/test/fixtures/type-bad-mjs/package.json -------------------------------------------------------------------------------- /test/fixtures/type-commonjs-cjs/file.cjs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/type-commonjs-cjs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmarkclements/is-file-esm/HEAD/test/fixtures/type-commonjs-cjs/package.json -------------------------------------------------------------------------------- /test/fixtures/type-commonjs-js/file.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/type-commonjs-js/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmarkclements/is-file-esm/HEAD/test/fixtures/type-commonjs-js/package.json -------------------------------------------------------------------------------- /test/fixtures/type-commonjs-mjs/file.mjs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/type-commonjs-mjs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmarkclements/is-file-esm/HEAD/test/fixtures/type-commonjs-mjs/package.json -------------------------------------------------------------------------------- /test/fixtures/type-module-cjs/file.cjs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/type-module-cjs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmarkclements/is-file-esm/HEAD/test/fixtures/type-module-cjs/package.json -------------------------------------------------------------------------------- /test/fixtures/type-module-js/file.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/type-module-js/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmarkclements/is-file-esm/HEAD/test/fixtures/type-module-js/package.json -------------------------------------------------------------------------------- /test/fixtures/type-module-mjs/file.mjs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/type-module-mjs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmarkclements/is-file-esm/HEAD/test/fixtures/type-module-mjs/package.json -------------------------------------------------------------------------------- /test/fixtures/type-undefined-cjs/file.cjs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/type-undefined-cjs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmarkclements/is-file-esm/HEAD/test/fixtures/type-undefined-cjs/package.json -------------------------------------------------------------------------------- /test/fixtures/type-undefined-js/file.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/type-undefined-js/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmarkclements/is-file-esm/HEAD/test/fixtures/type-undefined-js/package.json -------------------------------------------------------------------------------- /test/fixtures/type-undefined-mjs/file.mjs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/type-undefined-mjs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmarkclements/is-file-esm/HEAD/test/fixtures/type-undefined-mjs/package.json -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmarkclements/is-file-esm/HEAD/test/index.js --------------------------------------------------------------------------------