UNPKG

common-js-file-extensions

Version:
69 lines (41 loc) 1.29 kB
# Common JavaScript File Extensions This module exports three attributes: - `code`: contains an array of JavaScript extensions that refers to code files - `config`: contains an array of JavaScript extensions that refers to config/object files ## List of supported extensions and sources ### Code file extensions #### JavaScript - js - [cjs](https://nodejs.org/api/esm.html#esm_ecmascript_modules) - [mjs](https://nodejs.org/api/esm.html#esm_ecmascript_modules) #### [IcedCoffeeScript](http://maxtaco.github.io/coffee-script/) - iced - liticed - iced.md #### [CoffeeScript](http://coffeescript.org/) - cs - coffee - litcoffee - coffee.md #### [TypeScript](https://www.typescriptlang.org/) - ts - [tsx](https://www.typescriptlang.org/docs/handbook/jsx.html) #### [LiveScript](http://livescript.net/) - ls #### [ES/ES6 Scripts](https://babeljs.io) - es6 - es - jsx: [Spec](https://facebook.github.io/jsx) #### [Stratified JavaScript](http://onilabs.com/stratifiedjs) - sjs #### [Earl Grey](http://www.earl-grey.io/) - eg ### Config/object file extensions #### JavaScript Object Notation (JSON) - json #### [JavaScript LiveScript JSON](http://livescript.net/) - json.ls #### [JSON 5](http://json5.org) - json5 --- License MIT - Copyright (c) 2016 Luis Lobo Borobia