{"id":27081,"library":"js-transpiler","title":"js-transpiler","description":"A simple Gulp-based automation script for transpiling ES6 JavaScript to ES5 using Babel, with optional linting via ESLint (airbnb-base config). Copies JS files from source to destination, transpiles files that have an `/* eslint-env es6 */` header. Version 0.0.5, last release 2017. No longer actively maintained. Key differentiators: minimal configuration, RequireJS AMD module support, and file-level ES6 detection. Alternatives: direct use of Babel CLI or Webpack.","status":"abandoned","version":"0.0.5","language":"javascript","source_language":"en","source_url":"git://github.com/shuvava/js-transpiler","tags":["javascript","gulp","babel","es6","transpile"],"install":[{"cmd":"npm install js-transpiler","lang":"bash","label":"npm"},{"cmd":"yarn add js-transpiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add js-transpiler","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Orchestrates file copying, transpilation, and linting tasks","package":"gulp","optional":false},{"reason":"Required for ES6 to ES5 transpilation","package":"babel-core","optional":false},{"reason":"Optional linting capability","package":"eslint","optional":true},{"reason":"Linting rules used when lint is enabled","package":"eslint-config-airbnb-base","optional":true}],"imports":[{"note":"CommonJS only; no ESM support.","wrong":"import transpiler from 'js-transpiler';","symbol":"default","correct":"const transpiler = require('js-transpiler');"},{"note":"Also available as default.run or as named export.","wrong":"","symbol":"run","correct":"const { run } = require('js-transpiler');"},{"note":"Default import does not work; use namespace import in TypeScript.","wrong":"import transpiler from 'js-transpiler';","symbol":"default","correct":"import * as transpiler from 'js-transpiler'; transpiler.run(...)"}],"quickstart":{"code":"const transpiler = require('js-transpiler');\ntranspiler.run({\n  path: {\n    src: './src/**/*.js',\n    dest: './dist'\n  },\n  useBabel: true,\n  babelrc: {\n    presets: ['env']\n  },\n  useLint: false\n});\n// Then run: gulp","lang":"javascript","description":"Basic example: copies all JS files from src to dist, transpiling those with /* eslint-env es6 */ header using Babel presets 'env', no linting."},"warnings":[{"fix":"Use Babel CLI directly or update to a maintained alternative.","message":"Package unmaintained since 2017. Not compatible with modern Babel (>=7) or ESLint (>=6).","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Ensure all ES6 files start with the magic comment, or set `es6Pattern` option to a RegExp that matches.","message":"Only transpiles files with `/* eslint-env es6 */` comment (first line). Other files are copied as-is.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Upgrade package or use Node 8/9 LTS.","message":"Requires Node >=7, but not tested on Node 10+. May fail due to deprecated Babel 6 APIs.","severity":"breaking","affected_versions":">=0.0.0"},{"fix":"Run `npm install babel-preset-env` (or desired preset) before use.","message":"Babel presets and plugins must be installed globally or locally; no automatic installation.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install --save-dev babel-preset-env`.","cause":"Missing Babel preset dependency.","error":"Error: Cannot find module 'babel-preset-env'"},{"fix":"Use Gulp v3 (`npm install gulp@^3.9.1`) or switch to another tool.","cause":"Gulp v4 breaking change (stream-based instead of callback).","error":"TypeError: gulp.src(...).pipe is not a function"},{"fix":"Install compatible eslint and plugins: `npm install eslint@^4.0.0 eslint-config-airbnb-base@^12.0.0`.","cause":"Outdated eslint-config-airbnb-base version or missing plugins.","error":"Error: ESLint configuration is invalid"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}