Registry / devops / prosecco

prosecco

JSON →
library0.1.2jsnpmunverified

An experimental ES2015-aware JavaScript minifier (v0.1.2). Still in active development with no stable release cadence. Focuses on leveraging ES2015+ syntax for size reduction, unlike general-purpose minifiers that target ES5. Not production-ready; intended for research and experimentation.

npm install prosecco
INSTALL
IMPORT
SIG · PROSECCO
P
prosecco
devopsjavascriptv0.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import prosecco from 'prosecco'
const prosecco = require('prosecco')
Package is ESM-only; CommonJS require will fail.

Minifies a simple ES2015 module using Prosecco's default export.

import prosecco from 'prosecco'; const code = ` const x = 1; const y = 2; console.log(x + y); `; const minified = prosecco.minify(code, { sourceType: 'module' }); console.log(minified.code);
Debug
Known issues
breakingProsecco is experimental and may produce incorrect output for edge cases.
fix
Do not use in production; test thoroughly before deploying.
affects: >=0.1.0
breakingAPI is unstable and may change without notice between minor versions.
fix
Pin exact version and update cautiously.
affects: >=0.1.0
gotchaOnly supports ES2015 syntax; older JS will cause errors.
fix
Ensure input is ES2015+ code; transpile down if needed.
affects: >=0.1.0
Errors
Common errors & fixes
SyntaxError: Unexpected token (1:1)
Prosecco cannot parse non-ES2015 syntax (e.g., var, function hoisting).
fix
Convert code to ES2015+ or use a different minifier.
TypeError: prosecco.minify is not a function
Default import may be incorrectly imported or package version is old.
fix
Ensure import statement matches 'import prosecco from 'prosecco' and version >=0.1.0.
Upgrade
Version history
0.1.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
prosecco — npm install prosecco · libregistry