A deprecated formatter plugin for 6to5 (predecessor to Babel) that transforms ES6 modules into CommonJS, AMD, or global scripts for library distribution. Version 0.3.4 was the last release. It was made obsolete by 6to5 v2.7.0+, which added native module export support. Key differentiator: allowed library authors to write in ES6 and target multiple module systems seamlessly by specifying '6-to-library' as the modules option in 6to5.
npm install 6-to-libraryNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to use 6-to-library formatter to transpile an ES6 module with a default export into a distributable UMD file.
Upgrade to a newer version of Babel (formerly 6to5) and use its built-in module formatting (e.g., modules: 'umd' or 'commonjs').
Ensure your library exports a single default if you want seamless CommonJS usage; otherwise, users must access named exports via .default and .exportName.
Use unique file names or manually specify global names in 6to5 configuration if available.
Run 'npm install --save 6-to-library' and ensure node_modules includes it.
Change 'var lib = require('...').default' to 'var lib = require('...')'.No dependency data recorded yet.