{"_id":"less-plugin-sass2less","_rev":"6-099238c30b6f2f4e669833ec50b2fd06","name":"less-plugin-sass2less","description":"A plugin for less that converts SASS files into LESS. It comes with a cmd utility too.","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"less-plugin-sass2less","version":"1.0.0","description":"A plugin for less that converts SASS files into LESS. It comes with a cmd utility too.","main":"lib/plugin.js","bin":{"sass2less":"./bin/cmd.js"},"scripts":{"test":"jasmine"},"author":{"name":"mediafreakch"},"dependencies":{"cli":"^1.0.1","lodash":"^4.17.2","mkdirp":"^0.5.1"},"devDependencies":{"jasmine":"^2.5.2","jasmine-spec-reporter":"^2.7.0"},"peerDependencies":{"less-plugin-functions":"^0.0.2"},"repository":{"type":"git","url":"git+https://github.com/mediafreakch/less-plugin-sass2less.git"},"homepage":"https://github.com/mediafreakch/less-plugin-sass2less","bugs":{"url":"https://github.com/mediafreakch/less-plugin-sass2less/issues"},"keywords":["less","sass","converter","sass2less","sass to less","sass converter","convert sass to less"],"license":"MIT","gitHead":"556f55c2cf48bb30ffc62b44fde1ce847998a0c4","_id":"less-plugin-sass2less@1.0.0","_shasum":"81f5a3b4b7e7b37572c41a01c9efe6ba5b44d6c8","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.0","_npmUser":{"name":"mediafreakch","email":"info@mediafreak.ch"},"dist":{"shasum":"81f5a3b4b7e7b37572c41a01c9efe6ba5b44d6c8","tarball":"https://registry.npmjs.org/less-plugin-sass2less/-/less-plugin-sass2less-1.0.0.tgz","integrity":"sha512-d9JB1DQSNbFR4WgDiS72cmoyyfFF0VMV8CS5Uk65EfzlpMamUeVG5BW8wWlqgndICJ0VWXpTFlSheMeJ/0zDvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3vduDKmTgmxBL+yLYvWChYSC/iGDvyyOC3dEt3HZmFQIhAMrRmK2Oqh4xZ/z01rYlqveYPoyBaULLXZgV188Q+fCf"}]},"maintainers":[{"name":"mediafreakch","email":"info@mediafreak.ch"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/less-plugin-sass2less-1.0.0.tgz_1483697360867_0.884492120705545"}},"1.1.0":{"name":"less-plugin-sass2less","version":"1.1.0","description":"A plugin for less that converts SASS files into LESS. It comes with a cmd utility too.","main":"lib/plugin.js","bin":{"sass2less":"./bin/cmd.js"},"scripts":{"test":"jasmine"},"author":{"name":"mediafreakch"},"dependencies":{"cli":"^1.0.1","lodash":"^4.17.2","mkdirp":"^0.5.1"},"devDependencies":{"jasmine":"^2.5.2","jasmine-spec-reporter":"^2.7.0"},"peerDependencies":{"less-plugin-functions":"^0.0.2"},"repository":{"type":"git","url":"git+https://github.com/mediafreakch/less-plugin-sass2less.git"},"homepage":"https://github.com/mediafreakch/less-plugin-sass2less","bugs":{"url":"https://github.com/mediafreakch/less-plugin-sass2less/issues"},"keywords":["less","sass","converter","sass2less","sass to less","sass converter","convert sass to less"],"license":"MIT","gitHead":"8fb3c6075b0c9cc8e2854c66a450be1c8ae29814","_id":"less-plugin-sass2less@1.1.0","_shasum":"a7900e35dc7c1e48cef2ac7b5c3baf49b4888ae0","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.0","_npmUser":{"name":"mediafreakch","email":"info@mediafreak.ch"},"dist":{"shasum":"a7900e35dc7c1e48cef2ac7b5c3baf49b4888ae0","tarball":"https://registry.npmjs.org/less-plugin-sass2less/-/less-plugin-sass2less-1.1.0.tgz","integrity":"sha512-2bXusfjz5ZDYa2DwAb4Hyh79AAF78vlR3shKiYdJdqykc6qWvn5kyr33SlA8BCBKxtA4vDAJl0f21fGEyULRng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE6F23Ebn8i+89aAZ1Ht2jZrFVU2NeqSWxJOD+TvYPynAiEA+lUamkbOlg4QmT194vwJziGlZHmifPZUTSAg6Rli7To="}]},"maintainers":[{"name":"mediafreakch","email":"info@mediafreak.ch"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/less-plugin-sass2less-1.1.0.tgz_1483718869185_0.6077977132517844"}},"1.2.0":{"name":"less-plugin-sass2less","version":"1.2.0","description":"A plugin for less that converts SASS files into LESS. It comes with a cmd utility too.","main":"lib/plugin.js","bin":{"sass2less":"./bin/cmd.js"},"scripts":{"test":"istanbul cover node_modules/jasmine/bin/jasmine.js"},"author":{"name":"mediafreakch"},"dependencies":{"cli":"^1.0.1","lodash":"^4.17.2","mkdirp":"^0.5.1"},"devDependencies":{"istanbul":"^0.4.5","jasmine":"^2.5.2","jasmine-spec-reporter":"^2.7.0"},"peerDependencies":{"less-plugin-functions":"^0.0.2"},"repository":{"type":"git","url":"git+https://github.com/mediafreakch/less-plugin-sass2less.git"},"homepage":"https://github.com/mediafreakch/less-plugin-sass2less","bugs":{"url":"https://github.com/mediafreakch/less-plugin-sass2less/issues"},"keywords":["less","sass","converter","sass2less","sass to less","sass converter","convert sass to less"],"license":"MIT","gitHead":"39c6f3f02b779d0f8c454e761b80bac6d7a07694","_id":"less-plugin-sass2less@1.2.0","_shasum":"779cd050220277d828937182ceea5569519b20d5","_from":".","_npmVersion":"3.10.6","_nodeVersion":"7.8.0","_npmUser":{"name":"mediafreakch","email":"info@mediafreak.ch"},"dist":{"shasum":"779cd050220277d828937182ceea5569519b20d5","tarball":"https://registry.npmjs.org/less-plugin-sass2less/-/less-plugin-sass2less-1.2.0.tgz","integrity":"sha512-4VpxbS+ZNIo/cIZLQQ6Fz/lBYHzsm001BMfk0p6m6WxiPO6QRjRUE1fKP24iIGqqWCZvhdW5XqNf4T6aXcogrQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7NJwIFG/rZglpDB+dnJ/w3le3WwZBQk3E0UqYnUOrswIgKOHuHUAYH5IWnt8bMxU0stMVcuMf0XsxNLWtasWZ/Kw="}]},"maintainers":[{"name":"mediafreakch","email":"info@mediafreak.ch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/less-plugin-sass2less-1.2.0.tgz_1517073336221_0.13128847209736705"}}},"readme":"# less-plugin-sass2less\n\n[![Build Status](https://travis-ci.org/mediafreakch/less-plugin-sass2less.svg?branch=master)](https://travis-ci.org/mediafreakch/less-plugin-sass2less) [![Node version](https://img.shields.io/npm/v/less-plugin-sass2less.svg?style=flat)](https://www.npmjs.com/package/less-plugin-sass2less) [![Coverage Status](https://coveralls.io/repos/github/mediafreakch/less-plugin-sass2less/badge.svg?branch=master)](https://coveralls.io/github/mediafreakch/less-plugin-sass2less?branch=master)\n\nWant to use a UI library written in SASS, re-use it's mixins and variables but your entire source code is written in LESS? Sass2Less to the rescue! You can either use the `sass2less` command line utility included in this package or use it as a less-plugin and import `.scss` files into `.less` on-the-fly!\n\n## Get it\n\n`npm install less-plugin-sass2less --save-dev`\n\n## Usage as a less-plugin\n\nImport any `.scss` file into your existing LESS project like so:\n\n```\n// main.less\n@import (reference) \"./node_modules/material-design-lite/src/material-design-lite.scss\";\n\nbody {\n  color: @text-color-primary; // you can now use imported SASS variables as LESS variables\n}\n\n.my-button {\n  .typo-display-4; // or use mixins from the imported SASS file\n}\n```\n\nThen simply specify it as a plugin to your less compiler:\n\n**Shell**\n\n`lessc --sass2less main.less build.css`\n\n**node.js**\n```\nlet less = require('less')\nlet sass2less = require('less-plugin-sass2less')\nlet fs = require('fs')\nlet file\n\n// get a file\nfs.readFile('main.less', 'utf-8', function(err, contents) {\n  if(err) return console.log(err)\n  file = contents\n\n  less.render(file, {\n    plugins: [sass2less]\n  }).then(function(output) {\n    console.log(output.css)\n  }, function (error) {\n    console.log(error)\n  })\n})\n```\n\n**@functions**\n\nIf your sass files contains `@function` definitions and you want to use them, install `less-plugin-functions`:\n\n```\n// install additional dependency:\nnpm install less-plugin-functions --save-dev\n\n// use it as a less-plugin:\nlessc --sass2less --functions main.less build.css\n```\n\n## Convert SASS files to LESS\n\nTo convert all your `.scss` files at once into `.less` files, use the command line utility.\n\n`sass2less [source] destination-pattern`\n\nIt supports globs, so you can do:\n\n```\nsass2less path/to/*.scss 'dist/{name}.less'\nsass2less path/to/{filea,fileb,filec}.scss 'dist/{name}.less'\nsass2less **/*.scss 'dist/{dir}/{name}.less'\nsass2less **/*.{scss,sass} 'dist/{dir}/{name}.less'\n```\n\nAvailable destination-pattern keys includes all the keys returned by `path.parse(filename)` (ie: root, dir, name, base, ext).\n\n## Supported conversions\n\n- `@for`\n- `@extend`\n- `@function` becomes `.function();`\n- `@if`, and `@else`\n- `@import`\n- `@include`\n- `@mixin` becomes `.mixin();`\n- `adjust-hue()`\n- `calc()`\n- `!default`\n- `!important` (for mixins)\n- `#{$foo}`\n- `nth()`\n- `rgba()`\n- `unquote()`\n- `$`\n\nThere are certain things that work in both compilers and do not need explicit conversion, such as lists.\n\n## Known issues\n\n- **`@elseif` clauses** Not supported\n- **`!default` attributes** Variables with the same name will not be ignored like in SASS. The most recent takes precedence over the previous one.\n- **`@import` statements** Importing a file as `@import \"file.scss\"` whereas the physical file is actually named `_file.scss` is supported, but it comes at a cost. LESS errors in those files will simply result in the file not being compiled.\n","maintainers":[{"name":"mediafreakch","email":"info@mediafreak.ch"}],"time":{"modified":"2022-06-19T11:41:04.230Z","created":"2017-01-06T10:09:21.382Z","1.0.0":"2017-01-06T10:09:21.382Z","1.1.0":"2017-01-06T16:07:51.284Z","1.2.0":"2018-01-27T17:15:37.062Z"},"homepage":"https://github.com/mediafreakch/less-plugin-sass2less","keywords":["less","sass","converter","sass2less","sass to less","sass converter","convert sass to less"],"repository":{"type":"git","url":"git+https://github.com/mediafreakch/less-plugin-sass2less.git"},"author":{"name":"mediafreakch"},"bugs":{"url":"https://github.com/mediafreakch/less-plugin-sass2less/issues"},"license":"MIT","readmeFilename":"README.md","users":{"sharrondenice":true}}