{"id":19425525,"url":"https://github.com/concatapult/node-less-endpoint","last_synced_at":"2026-04-10T11:32:23.925Z","repository":{"id":65460821,"uuid":"55788560","full_name":"Concatapult/node-less-endpoint","owner":"Concatapult","description":"Easily server a LESS CSS file from express.","archived":false,"fork":false,"pushed_at":"2016-12-04T21:09:48.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T04:37:58.901Z","etag":null,"topics":["css","express-js","less"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Concatapult.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-08T15:15:42.000Z","updated_at":"2016-12-04T20:13:22.000Z","dependencies_parsed_at":"2023-01-24T15:05:11.413Z","dependency_job_id":null,"html_url":"https://github.com/Concatapult/node-less-endpoint","commit_stats":null,"previous_names":["mindeavor/node-less-endpoint"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Concatapult%2Fnode-less-endpoint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Concatapult%2Fnode-less-endpoint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Concatapult%2Fnode-less-endpoint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Concatapult%2Fnode-less-endpoint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Concatapult","download_url":"https://codeload.github.com/Concatapult/node-less-endpoint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240605843,"owners_count":19827985,"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-js","less"],"created_at":"2024-11-10T14:03:53.194Z","updated_at":"2026-04-10T11:32:23.884Z","avatar_url":"https://github.com/Concatapult.png","language":"JavaScript","readme":"# node-less-endpoint\n\nEasily serve a [LESS](http://lesscss.org/) file as CSS from an express endpoint. No grunt/gulp, no build files, no required configuration – just pure data.\n\n### Dependencies\n\n- [LESS](https://www.npmjs.com/package/less) (taken care of by npm install)\n- ES6 `Object.assign` (either use node v4.0+ or a [polyfill](https://www.npmjs.com/package/es6-object-assign))\n\n### Installation\n\n    $ npm install node-less-endpoint --save\n\n## Usage - Easy Version\n\nAssuming you have the following directory structure:\n\n```\nclient/\n└── app.less\n\nserver/\n└── index.js\n\npackage.json\n```\n\nThen you can write the following as your `server/index.js`:\n\n```javascript\n// server.js\nvar LESS = require('node-less-endpoint');\nvar app  = require('express')();\n\napp.get('/assets/app-bundle.css',\n  LESS.serve('./client/app.less'));\n\nconsole.log(\"Listening on port 5555...\");\napp.listen(5555);\n```\n\nAnd run `node server/index.js`.\n\nNow any GET request to `localhost:5555/app.css` will compile and serve the LESS file located at `./client/app.less`. Any `@import` statements within `app.less` will also be included in the final output.\n\n## Advanced Usage\n\n```javascript\napp.get(\n  '/app.css',\n  LESS.serve('./client/app.less', {\n\n    // (dev only) defaults to parent folder of LESS file.\n    // Any LESS file changes in this directory will clear the output cache.\n    watchDir: './client/',\n\n    // Defaults to parent folder of the LESS file you specify.\n    // The node_modules/ is always included.\n    includePaths: ['./client/'],\n\n    // Defaults to false\n    debug: false\n  })\n);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconcatapult%2Fnode-less-endpoint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconcatapult%2Fnode-less-endpoint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconcatapult%2Fnode-less-endpoint/lists"}