{"library":"node-less","title":"node-less","description":"A minimal Node.js wrapper around the Less CSS preprocessor, allowing compilation of .less files to CSS programmatically and via command-line. Version 1.0.0 is the initial release with basic compilation support. No longer maintained; users should switch to the official 'less' npm package which is actively developed and includes all features.","language":"javascript","status":"deprecated","last_verified":"Fri May 01","install":{"commands":["npm install node-less"],"cli":{"name":"node-less","version":null}},"imports":["import less from 'node-less'","import less from 'node-less'; const css = less.compile('.class { color: red; }')","import less from 'node-less'; less.render('.a { .b { color: red; } }')"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import less from 'node-less';\n\nconst input = `\n@base: #f938ab;\n.box {\n  color: @base;\n  border-color: darken(@base, 10%);\n}\n`;\n\ntry {\n  const output = less.compile(input);\n  console.log(output);\n} catch (err) {\n  console.error('Compilation error:', err);\n}","lang":"javascript","description":"Shows basic usage of less.compile() to process Less source and produce CSS output synchronously.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}