This repository was archived by the owner on Dec 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpackage.json
More file actions
36 lines (36 loc) · 2.55 KB
/
package.json
File metadata and controls
36 lines (36 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"name": "express-less",
"description": "On-the-fly LESS-to-CSS conversion middleware",
"version": "0.1.0",
"license": "GPL-3.0",
"author": {
"name": "Andrew A. Usenok",
"email": "tooogle@mail.ru"
},
"main": "index",
"keywords": [
"express",
"less",
"css"
],
"dependencies": {
"less": ">=2.0.0"
},
"devDependencies": {
"express": ">=4.14.0",
"mocha": "latest",
"supertest": "latest"
},
"scripts": {
"test": "mocha"
},
"repository": {
"type": "git",
"url": "git://github.com/toogle/express-less"
},
"bugs": {
"url": "https://github.com/toogle/express-less/issues"
},
"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 <tooogle@mail.ru>\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 <http://www.gnu.org/licenses/>.",
"readmeFilename": "README.md"
}