{"id":41323,"library":"js-loader","title":"JS Loader","description":"js-loader is a concatenator, minifier, and dependency resolver for client-side JavaScript, designed for use in Node.js environments. The current version (0.1.1) is a legacy utility that resolves CommonJS-style dependency trees and bundles them for the browser. It has been unmaintained since 2011 and is deprecated in favor of modern bundlers like webpack, Rollup, or esbuild. Key features include on-the-fly dependency resolution and minification via uglify-js. This package is not suitable for modern workflows and may have security vulnerabilities in its dependencies.","status":"deprecated","version":"0.1.1","language":"javascript","source_language":"en","source_url":"git://github.com/dmcquay/node-js-loader","tags":["javascript"],"install":[{"cmd":"npm install js-loader","lang":"bash","label":"npm"},{"cmd":"yarn add js-loader","lang":"bash","label":"yarn"},{"cmd":"pnpm add js-loader","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Used for minification of concatenated JavaScript.","package":"uglify-js","optional":false}],"imports":[{"note":"The package is CommonJS-only and does not support ESM imports.","wrong":"import jsLoader from 'js-loader';","symbol":"jsLoader","correct":"const jsLoader = require('js-loader');"},{"note":"The package does not export named symbols; you must destructure from the default export.","wrong":"import { resolveDependencies } from 'js-loader';","symbol":"resolveDependencies","correct":"const { resolveDependencies } = require('js-loader');"}],"quickstart":{"code":"const jsLoader = require('js-loader');\nconst path = require('path');\n\nconst entry = path.join(__dirname, 'lib', 'main.js');\n\njsLoader.load(entry, function(err, bundle) {\n  if (err) throw err;\n  console.log(bundle); // bundled and minified JavaScript\n});","lang":"javascript","description":"Demonstrates loading a JavaScript entry point and bundling its dependencies into a single minified string."},"warnings":[{"fix":"Use webpack, Rollup, esbuild, or another modern bundler.","message":"Package is no longer maintained. Do not use for new projects.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Wrap the call in a Promise if you need async/await.","message":"The 'load' function expects a callback. It does not support Promises or async/await.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Do not use this package; it relies on outdated dependencies.","message":"The package may use older uglify-js versions with known security vulnerabilities.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'0.1.1':27 '2011':50 'browser':44 'bundl':40 'bundler':58 'client':15 'client-sid':14 'commonj':35 'commonjs-styl':34 'concaten':8 'current':25 'depend':11,37,71,94 'deprec':53 'design':18 'environ':23 'esbuild':63 'favor':55 'featur':65 'fli':70 'includ':66 'javascript':17,95 'js':1,4,78 'js-loader':3 'key':64 'legaci':30 'like':59 'loader':2,5 'may':88 'minif':74 'minifi':9 'modern':57,85 'node.js':22 'on-the-fli':67 'packag':80 'resolut':72 'resolv':12,33 'rollup':61 'secur':90 'side':16 'sinc':49 'style':36 'suitabl':83 'tree':38 'uglifi':77 'uglify-j':76 'unmaintain':48 'use':20 'util':31 'version':26 'via':75 'vulner':91 'webpack':60 'workflow':86","created_at":"2026-06-04T18:51:50.856478+00:00","updated_at":"2026-06-04T18:51:50.856478+00:00","problems":[{"fix":"Run 'npm install js-loader' or check your package.json.","cause":"Package not installed or not in node_modules.","error":"Error: Cannot find module 'js-loader'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/dmcquay/node-js-loader","github":"git://github.com/dmcquay/node-js-loader","docs":null,"changelog":null,"pypi":null,"npm":"js-loader","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}