{"id":18505,"library":"lodash._createcompounder","title":"lodash internal createCompounder","description":"An internal lodash utility module that creates a function for combining words using a specified separator and callback. This is part of lodash's modular build system for v3.0.0 only. It is not intended for public use; developers should use the full lodash package or lodash-es instead. The module is deprecated in favor of lodash v4+, which no longer exposes this internal function as a standalone package.","status":"deprecated","version":"3.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/lodash/lodash","tags":["javascript"],"install":[{"cmd":"npm install lodash._createcompounder","lang":"bash","label":"npm"},{"cmd":"yarn add lodash._createcompounder","lang":"bash","label":"yarn"},{"cmd":"pnpm add lodash._createcompounder","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"CJS-only; ESM import not available. Use full lodash package for ESM support.","wrong":"import createCompounder from 'lodash._createcompounder';","symbol":"createCompounder","correct":"var createCompounder = require('lodash._createcompounder');"},{"note":"lodash._createcompounder exports a single function, not a namespaced object. Use full lodash for public API.","wrong":"require('lodash._createcompounder').createCompounder","symbol":"lodash","correct":"var _ = require('lodash');"},{"note":"lodash._createcompounder is an internal dependency; use lodash.camelcase for public camelCase functionality.","wrong":"var camelCase = require('lodash._createcompounder');","symbol":"camelCase","correct":"var camelCase = require('lodash.camelcase');"}],"quickstart":{"code":"var createCompounder = require('lodash._createcompounder');\n\n// Example: create a function that joins words with hyphens\nvar hyphenate = createCompounder(function(result, word, index) {\n  return result + (index ? '-' : '') + word.toLowerCase();\n});\n\nconsole.log(hyphenate('Hello World')); // 'hello-world'","lang":"javascript","description":"Shows how to use createCompounder to build a custom word-joiner function."},"warnings":[{"fix":"Use the full lodash package (v4+) or lodash-es for ESM.","message":"This package is an internal lodash module for v3.0.0 and is deprecated. Do not use in new projects.","severity":"deprecated","affected_versions":"3.0.0"},{"fix":"Upgrade to lodash v4 and use public API functions like _.camelCase or _.kebabCase.","message":"lodash v4 removed all internal modular packages like lodash._createcompounder. They are not available in v4.","severity":"breaking","affected_versions":">=4.0.0"},{"fix":"Avoid using internal packages; use lodash public API.","message":"The function exported is not documented in lodash public docs; usage may break without notice.","severity":"gotcha","affected_versions":"3.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Install version 3.0.0: npm install lodash._createcompounder@3.0.0","cause":"Package version 3.0.0 only; not available in later versions.","error":"Cannot find module 'lodash._createcompounder'"},{"fix":"Use: var createCompounder = require('lodash._createcompounder');","cause":"Incorrect import: requiring the package multiple times or using ESM style.","error":"TypeError: createCompounder is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}