transpilify

raw JSON →
2.0.3 verified Fri May 01 auth: no javascript

applies browserify transforms to source code without bundling, enabling bundler-agnostic npm distributions. Current stable version 2.0.3, experimental status. Useful for pre-applying transforms like glslify or brfs to individual files. Differentiates from full bundlers by emitting single-file transforms suitable for library authors. Low maintenance cadence; last release in 2018.

error Error: Cannot find module 'brfs'
cause Transform not installed locally or globally.
fix
npm install brfs --save-dev in project root.
error TypeError: createTranspiler is not a function
cause Wrong import method; package exports are not default.
fix
Use const { createTranspiler } = require('transpilify') or import { createTranspiler } from 'transpilify'.
deprecated stability experimental; last updated 2018. Future Node versions may break.
fix Consider alternatives like babel or esbuild for active support.
gotcha Transforms that depend on bundler internals (like globals) will not work.
fix Ensure transforms are purely source-to-source without bundler assumptions.
gotcha CLI --transform options use browserify subarg syntax; incorrect quoting can fail.
fix Use proper shell escaping, e.g. -t [ babelify --presets [ es2015 ] ]
npm install transpilify
yarn add transpilify
pnpm add transpilify

Shows programmatic usage: create transpiler with brfs transform, pipe a file through, and write output.

import { createTranspiler } from 'transpilify';
import { readFileSync, writeFileSync } from 'fs';

const transpiler = createTranspiler({
  transform: ['brfs'],
  basedir: process.cwd()
});

let result = '';
transpiler('input.js')
  .on('data', chunk => result += chunk)
  .on('end', () => writeFileSync('output.js', result));

// CLI equivalent: transpilify input.js --transform brfs > output.js