Registry / devops / fulljsmin

fulljsmin

JSON →
library0.1.0jsnpmunverified

A Node.js package wrapping the fulljsmin.js minifier from Pretty-Diff, supporting JavaScript and CSS minification. Version 0.1.0 is the latest and only release. It provides a simple synchronous API and a command-line interface. Unlike more modern minifiers (e.g., terser, cssnano), it is not actively maintained and lacks features like source maps, async support, or streaming.

npm install fulljsmin
INSTALL
IMPORT
SIG · FULLJSMIN
F
fulljsmin
devopsjavascriptv0.1.0
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.

jsmin
import { jsmin } from 'fulljsmin'
const jsmin = require('fulljsmin')
CommonJS require() works but TypeScript may need 'esModuleInterop' if using ESM.
default (jsmin)
import jsmin from 'fulljsmin'
const jsmin = require('fulljsmin').jsmin
Default export is the jsmin function; named export also exists.
require
const fulljsmin = require('fulljsmin'); fulljsmin.jsmin({...})
const { jsmin } = require('fulljsmin')
Both named and default require work in CommonJS.

Shows how to minify JavaScript using the fulljsmin package with ESM import.

import jsmin from 'fulljsmin'; import fs from 'fs'; const input = process.env.INPUT ?? ''; const options = { type: 'js', source: `function test() { console.log('hello'); }` }; const minified = jsmin(options); console.log(minified);
Debug
Known issues
gotchaThe package is essentially unmaintained; use at your own risk for production.
fix
Consider using 'terser' or 'cssnano' for actively maintained alternatives.
affects: >=0.0.0
gotchaThe API expects a synchronous object argument with 'type' and 'source'; no async or stream support.
fix
If you need large file support, buffer the entire file into memory.
affects: 0.1.0
gotchaThe 'type' option must be 'js' or 'css'; other values may throw or produce unexpected output.
fix
Always validate input type before calling.
affects: 0.1.0
Errors
Common errors & fixes
Error: Cannot find module 'fulljsmin'
Package not installed in node_modules.
fix
Run 'npm install fulljsmin' in your project directory.
TypeError: jsmin is not a function
Using named import { jsmin } when default import is expected, or vice versa.
fix
Use 'import jsmin from 'fulljsmin'' or 'const jsmin = require('fulljsmin')'.
SyntaxError: Unexpected token u in JSON at position 0
Passing invalid or undefined source to the minifier.
fix
Ensure the 'source' property is a non-empty string.
Upgrade
Version history
0.1.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
fulljsmin — npm install fulljsmin · libregistry