{"name":"postcss-less","version":"2.0.0","description":"LESS parser for PostCSS","license":"MIT","repository":{"type":"git","url":"git+https://github.com/webschik/postcss-less.git"},"keywords":["css","postcss","postcss-syntax","parser","less"],"main":"dist/less-syntax.js","files":["dist"],"author":{"name":"Denys Kniazevych","email":"webschik@gmail.com"},"maintainer":{"name":"Andrew Powell","email":"andrew@shellscape.org","url":"shellscape.org"},"engines":{"node":">=4"},"scripts":{"test":"gulp test:all","prepublish":"gulp dist"},"dependencies":{"postcss":"^5.2.16"},"devDependencies":{"babel-core":"^6.7.2","babel-eslint":"^7.2.3","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.6.0","babel-register":"^6.7.2","chai":"^3.5.0","eslint-config-shellscape":"^1.0.0","eslint-plugin-filenames":"^1.2.0","gulp":"^3.9.1","gulp-babel":"^6.1.2","gulp-eslint":"^3.0.1","gulp-json-editor":"2.2.1","gulp-mocha":"^4.3.1","gulp-rename":"^1.2.2","gulp-rimraf":"^0.2.0","gulp-uglify":"^2.1.2","gulp-util":"^3.0.7","less":"^2.6.1","mocha":"^3.3.0","postcss-parser-tests":"^5.0.11","run-sequence":"^1.1.5","through":"^2.3.8"},"gitHead":"2a0376381a073510bcc43ce1a5188991972defa4","bugs":{"url":"https://github.com/webschik/postcss-less/issues"},"homepage":"https://github.com/webschik/postcss-less#readme","_id":"postcss-less@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"10.1.0","_npmUser":{"name":"shellscape","email":"andrew@shellscape.org"},"dist":{"integrity":"sha512-pPNsVnpCB13nBMOcl5GVh8JGmB0JGFjqkLUDzKdVpptFFKEe9wFdEzvh2j4lD2AD+7qcrUfw9Ta+oi5+Fw7jjQ==","shasum":"5d190b8e057ca446d60fe2e2587ad791c9029fb8","tarball":"http://registry-npm.ywwl.com/postcss-less/download/postcss-less-2.0.0.tgz","fileCount":58,"unpackedSize":93922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbC/H5CRA9TVsSAnZWagAA8vUP/RPXhk5P9f5A/YZSI1+U\nK73C4CDJxEIjGkuAT+89qeSKUHLRnvCmD5tXDeL269vaEr5tT8vxANYDCS6Z\nqW2mrdbouC5GXEJWEmjC1Qs5PUx10jWGAO4Ouwp8b8jVBiERtXzsfgVa5sXr\ndxIn5035PAmFBTlP6qzbgkUNDdrKGzoYOlcIr6a7dgqZHxGHUSDtKTjlykzZ\nh9W0THG3RPK2henMOEELCY/Le9Qkc9NJmW7XlZlypPbt64CcPhIqNduI31TB\noGXx8KJpzRpk85AV7djsjKwG2SamGsYH26NgVN4rfjjNPc6exgupD+r/p0IS\ne9+nKk0Ymx9waF/0S7P7IH+Ui1HLJWXHKzYiFmgbEmD73XhiHnGRxnhHLMXn\nnGANnbgpEEYSXMmy+SDmS0aasECulKZdXiImGlx5gEYul+PF/pRchsBw/WjG\nEZRs3aLmfv8ZH1Dpwm1tcsgcFd2vGogEoTvRMuhVY+1iyFppmHVa2vRjZgAO\nFgeYvoKkHSAw8TZH+OthU8st8OzjgOtVWzialP/wEQVPgLZIGIjPWU57E7MS\nYzA6+j+SOeZexAbM19kibACON0yzwBoZZ06PO/+hwo81kID0AthwCx3spEVA\nqsio3wbYMuFjrgA4zrNb2RTFNXE8EZrf+il8B77flBQJDTF62cLtajKxZ533\nRgwK\r\n=q0hU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICnwVR0dpCzoNfyIc5RNXid/BmsA6/VTNXPdKdT0BhJWAiEA3yoO8T1DY5ue9oJ6XzrZZO2O2ZV5Tf0qiVPak8YLxbI="}],"size":19349,"noattachment":false,"key":"/postcss-less/-/postcss-less-2.0.0.tgz"},"maintainers":[{"name":"shellscape","email":"andrew@shellscape.org"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-less_2.0.0_1527509496253_0.4217230920977284"},"_hasShrinkwrap":false,"readme":"[tests]: \thttps://img.shields.io/circleci/project/github/shellscape/postcss-less.svg\n[tests-url]: https://circleci.com/gh/shellscape/postcss-less\n\n[cover]: https://codecov.io/gh/shellscape/postcss-less/branch/master/graph/badge.svg\n[cover-url]: https://codecov.io/gh/shellscape/postcss-less\n\n[size]: https://packagephobia.now.sh/badge?p=postcss-less\n[size-url]: https://packagephobia.now.sh/result?p=postcss-less\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS-SCSS]: https://github.com/postcss/postcss-scss\n[LESS]: https://lesscss.org/\n[Autoprefixer]: https://github.com/postcss/autoprefixer\n[Stylelint]: http://stylelint.io/\n\n# postcss-less\n\n[![tests][tests]][tests-url]\n[![cover][cover]][cover-url]\n[![size][size]][size-url]\n\nA [PostCSS] Syntax for parsing [LESS]\n\n_Note: This module requires Node v6.14.4+. `poscss-less` is not a LESS compiler. For compiling LESS, please use the official toolset for LESS._\n\n## Install\n\nUsing npm:\n\n```console\nnpm install postcss-less --save-dev\n```\n\n<a href=\"https://www.patreon.com/shellscape\">\n  <img src=\"https://c5.patreon.com/external/logo/become_a_patron_button@2x.png\" width=\"160\">\n</a>\n\nPlease consider [becoming a patron](https://www.patreon.com/shellscape) if you find this module useful.\n\n## Usage\n\nThe most common use of `postcss-less` is for applying PostCSS transformations directly to LESS source. eg. ia theme written in LESS which uses [Autoprefixer] to add appropriate vendor prefixes.\n\n```js\nconst syntax = require('postcss-less');\npostcss(plugins)\n  .process(lessText, { syntax: syntax })\n  .then(function (result) {\n    result.content // LESS with transformations\n});\n```\n\n## LESS Specific Parsing\n\n### `@import`\n\nParsing of LESS-specific `@import` statements and options are supported.\n\n```less\n@import (option) 'file.less';\n```\n\nThe AST will contain an `AtRule` node with:\n\n- an `import: true` property\n- a `filename: <String>` property containing the imported filename\n- an `options: <String>` property containing any [import options](http://lesscss.org/features/#import-atrules-feature-import-options) specified\n\n### Inline Comments\n\nParsing of single-line comments in CSS is supported.\n\n```less\n:root {\n    // Main theme color\n    --color: red;\n}\n```\n\nThe AST will contain a `Comment` node with an `inline: true` property.\n\n### Mixins\n\nParsing of LESS mixins is supported.\n\n```less\n.my-mixin {\n  color: black;\n}\n```\n\nThe AST will contain an `AtRule` node with a `mixin: true` property.\n\n#### `!important`\n\nMixins that declare `!important` will contain an `important: true` property on their respective node.\n\n### Variables\n\nParsing of LESS variables is supported.\n\n```less\n@link-color: #428bca;\n```\n\nThe AST will contain an `AtRule` node with a `variable: true` property.\n\n_Note: LESS variables are strictly parsed - a colon (`:`) must immediately follow a variable name._\n\n## Stringifying\n\nTo process LESS code without PostCSS transformations, custom stringifier\nshould be provided.\n\n```js\nconst postcss = require('postcss');\nconst syntax = require('postcss-less');\n\nconst less = `\n    // inline comment\n\n    .container {\n        .mixin-1();\n        .mixin-2;\n        .mixin-3 (@width: 100px) {\n            width: @width;\n        }\n    }\n\n    .rotation(@deg:5deg){\n      .transform(rotate(@deg));\n    }\n`;\n\nconst result = await postcss().process(less, { syntax });\n\n // will contain the value of `less`\nconst { content } = result;\n```\n\n## Use Cases\n\n- Lint LESS code with 3rd-party plugins.\n- Apply PostCSS transformations (such as [Autoprefixer](https://github.com/postcss/autoprefixer)) directly to the LESS source code\n\n## Meta\n\n[CONTRIBUTING](./.github/CONTRIBUTING)\n\n[LICENSE (MIT)](./LICENSE)\n","publish_time":1527509496352,"_cnpm_publish_time":1527509496352,"dist-tags":{"latest":"7.0.1"}}