A tiny transpiler (v0.0.2) that converts ES6 shorthand method syntax in object literals (e.g., `{a, b() {}}`) to ES5 equivalents (`{a: a, b: function b() {}}`). It is a simple, single-purpose tool that performs a string-based transformation, not a full-featured compiler like Babel. Published as a proof-of-concept, it has not seen updates since initial release and is in maintenance mode. Useful only for legacy build pipelines that need a minimal ES6 shorthand transformation without a larger toolchain. Not suitable for production use.
npm install es6-shorthandsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates transforming ES6 shorthand method syntax to ES5 compatible code using the default export function.
Use a proper parser-based tool like Babel for production code.
Migrate to Babel or TypeScript for ES6+ transpilation.
N/A
Use `import shorthand from 'es6-shorthands'` or `const shorthand = require('es6-shorthands').default`.Run `npm install es6-shorthands --save-dev` and ensure it's in `node_modules`.
No dependency data recorded yet.