{"id":15011478,"url":"https://github.com/toogle/express-less","last_synced_at":"2025-04-09T19:08:56.725Z","repository":{"id":9882676,"uuid":"11885852","full_name":"toogle/express-less","owner":"toogle","description":"On-the-fly LESS-to-CSS conversion middleware","archived":false,"fork":false,"pushed_at":"2016-07-31T14:21:26.000Z","size":31,"stargazers_count":8,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T19:08:23.672Z","etag":null,"topics":["css","express","expressjs","less","lesscss","middleware"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/express-less","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toogle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-04T22:11:39.000Z","updated_at":"2019-03-27T12:37:53.000Z","dependencies_parsed_at":"2022-09-10T04:04:08.076Z","dependency_job_id":null,"html_url":"https://github.com/toogle/express-less","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toogle%2Fexpress-less","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toogle%2Fexpress-less/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toogle%2Fexpress-less/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toogle%2Fexpress-less/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toogle","download_url":"https://codeload.github.com/toogle/express-less/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248094993,"owners_count":21046770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","express","expressjs","less","lesscss","middleware"],"created_at":"2024-09-24T19:41:08.469Z","updated_at":"2025-04-09T19:08:56.694Z","avatar_url":"https://github.com/toogle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Express LESS\n\nOn-the-fly LESS-to-CSS conversion middleware.\n\nFor more information on LESS visit [lesscss.org](http://lesscss.org/).\n\n## Installation\n\n    $ npm install express-less\n\n## Usage\n\n```js\nvar express = require('express'),\n    expressLess = require('express-less');\n\nvar app = express();\napp.use('/less-css', expressLess(__dirname + '/less'));\n```\nNow request to */less-css/styles.css* will return rendered contents of *./less/styles.less*.\n**Note the change of file extension from `.less` to `.css`.**\n\nAdditionally, you can ask LESS to compress the result:\n\n```js\napp.use('/less-css', expressLess(__dirname + '/less', { compress: true }));\n```\n\nYou can enable the cache system to improve performance:\n\n```js\napp.use('/less-css', expressLess(__dirname + '/less', { cache: true }));\n```\n\nFor detail information on LESS errors use the `debug` option, e.g.\n\n```js\n// Enable error reporting permanently\napp.use('/less-css', expressLess(__dirname + '/less', { debug: true }));\n\n// or only for development environment\napp.use('/less-css', expressLess(__dirname + '/less', {\n    debug: app.get('env') == 'development'\n}));\n```\n\n## Tests\n\n    $ npm test\n\n# License\n\nCopyright (C) 2016 Andrew A. Usenok \u0026lt;tooogle@mail.ru\u0026gt;\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program. If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoogle%2Fexpress-less","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoogle%2Fexpress-less","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoogle%2Fexpress-less/lists"}