{"id":25798,"library":"js-to-md","title":"JS-TO-MD","description":"A Node.js transpiler that converts JavaScript objects into Markdown for generating dynamic style guides. Current stable version 1.0.1, low release cadence. It traverses the ./src folder, ignoring node_modules, and generates README.md files organized by folder. Key differentiator: simple configuration via JavaScript objects rather than complex templates, but minimal flexibility and no active maintenance.","status":"active","version":"1.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/geeksvilleaz/js-to-md","tags":["javascript"],"install":[{"cmd":"npm install js-to-md","lang":"bash","label":"npm"},{"cmd":"yarn add js-to-md","lang":"bash","label":"yarn"},{"cmd":"pnpm add js-to-md","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM import via default export; package does not specify CommonJS but Node.js may support require if configured.","wrong":"const jsToMd = require('js-to-md')","symbol":"js-to-md","correct":"import jsToMd from 'js-to-md'"}],"quickstart":{"code":"const jsToMd = require('js-to-md');\nconst styleGuide = {\n  title: 'My Style Guide',\n  sections: [\n    {\n      name: 'naming--camelcase',\n      rule: 'Use camelCase for variable names.',\n      lint: { eslint: 'camelcase' },\n      examples: {\n        lang: 'javascript',\n        code: [\n          'const myVariable = \"good\";',\n          'const my_variable = \"bad\";'\n        ]\n      }\n    }\n  ]\n};\njsToMd(styleGuide, './output');","lang":"javascript","description":"Demonstrates converting a JavaScript object to a Markdown style guide file."},"warnings":[{"fix":"Place your .js source files in ./src directory.","message":"Only files inside ./src folder are traversed; create source files in ./src.","severity":"gotcha","affected_versions":">=1.0"},{"fix":"Name your source file as 'foldername.js' (without README) to control output path.","message":"source file name determines output folder: e.g., ./src/javascript.js generates ./javascript/README.md.","severity":"gotcha","affected_versions":">=1.0"},{"fix":"Always test against your existing configs.","message":"Version 1.0.1 has no documented breaking changes from 1.0.0.","severity":"breaking","affected_versions":">=1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install --save js-to-md' in your project directory.","cause":"Package not installed globally or in project's node_modules.","error":"Cannot find module 'js-to-md'"},{"fix":"Create a .js file in the ./src directory with the expected name (e.g., ./src/myguide.js).","cause":"Source file not created in ./src folder.","error":"ENOENT: no such file or directory, open './src/filename.js'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}