{"id":21387009,"url":"https://github.com/sassdoc/sass-convert","last_synced_at":"2025-07-13T15:31:29.901Z","repository":{"id":23752546,"uuid":"27126755","full_name":"SassDoc/sass-convert","owner":"SassDoc","description":"[umaintained] Node.js bindings to sass-convert.","archived":false,"fork":false,"pushed_at":"2020-06-05T13:27:33.000Z","size":61,"stargazers_count":37,"open_issues_count":7,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-09T14:34:58.582Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SassDoc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2014-11-25T13:20:42.000Z","updated_at":"2023-07-07T20:41:02.000Z","dependencies_parsed_at":"2022-08-22T05:50:17.024Z","dependency_job_id":null,"html_url":"https://github.com/SassDoc/sass-convert","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SassDoc%2Fsass-convert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SassDoc%2Fsass-convert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SassDoc%2Fsass-convert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SassDoc%2Fsass-convert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SassDoc","download_url":"https://codeload.github.com/SassDoc/sass-convert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225893454,"owners_count":17540916,"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":[],"created_at":"2024-11-22T12:11:27.228Z","updated_at":"2024-11-22T12:11:27.931Z","avatar_url":"https://github.com/SassDoc.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [unmaintained] sass-convert\n\n[![npm version][npm-image]][npm-url]\n[![Build Status][travis-image]][travis-url]\n[![Coverage Status][coveralls-image]][coveralls-url]\n[![Dependencies Status][depstat-image]][depstat-url]\n[![License][license-image]][license-url]\n\n\u003e Node.js bindings to [sass-convert].\n\nsass-convert is a library that provides binding for Node.js to [sass-convert],\nthe converter shipped with Sass. Integrates the converter in a stream pipeline.\n\n\n## Options\n\n### from*\ntype: `String`  \nThe format to convert from. Can be `css`, `scss`, `sass`.\n\n### to*\ntype: `String`  \nThe format to convert to. Can be `scss` or `sass`.\n\n### force\ntype: `Boolean`  \ndefault: `false`  \nContinue the stream chain even if the converter is unable to work properly\n(e.g.: no `sass-convert` binary found). Unconverted chunks/files won't be pushed\nto the next pipe anyway.\n\n### rename\ntype: `Boolean`  \ndefault: `false`  \nWhether to change converted files extensions to `to` option (target format).\nIf you want more control over renaming, you should pipe [gulp-rename]\nafter the converter.\n\n\n### dasherize\ntype: `Boolean`  \nConvert underscores to dashes.\n\n### indent\ntype: `Number|String`  \nHow many spaces to use for each level of indentation. Defaults to 2.\n`'t'` means use hard tabs.\n\n### old\ntype: `Boolean`  \nOutput the old-style `:prop val` property syntax.\nOnly meaningful when generating Sass.\n\n### default-encoding\ntype: `String`  \nSpecify the default encoding for input files.\n\n### unix-newlines\ntype: `Boolean`  \nUse Unix-style newlines in written files.\nAlways true on Unix.\n\n\n## Installation\n\n```\nnpm i sass-convert --save\n```\n\n## Requirements\n\nYou need to have Sass (Ruby Sass \u003e=3.4.5) installed.\nEither globally or locally with Bundler.\n\n\n## Usage\n\n```js\nvar vfs = require('vinyl-fs');\nvar converter = require('sass-convert');\n\nvfs.src('./input/**/*.+(sass|scss|css)')\n  .pipe(converter({\n    from: 'sass',\n    to: 'scss',\n  }))\n  .pipe(vfs.dest('./output'));\n\n```\n\n```js\n// sassdoc \u003e= 2.0\nvar gulp = require('gulp');\nvar sassdoc = require('sassdoc');\nvar converter = require('sass-convert');\n\ngulp.task('sassdoc', function () {\n  return gulp.src('./input/**/*.+(sass|scss)')\n    .pipe(converter({\n      from: 'sass',\n      to: 'scss',\n    }))\n    .pipe(sassdoc());\n});\n```\n\n```js\nvar fs = require('fs');\nvar vfs = require('vinyl-fs');\nvar source = require('vinyl-source-stream');\nvar rename = require('gulp-rename');\nvar converter = require('sass-convert');\n\nfs.createReadStream('./file.sass')\n  .pipe(source('file.sass'))\n  .pipe(converter({\n    from: 'sass',\n    to: 'scss',\n  }))\n  .pipe(rename('file.scss'))\n  .pipe(vfs.dest('./'));\n```\n\n## Credits\n\n* [Pascal Duez](https://twitter.com/pascalduez)\n* [Valérian Galliat](https://twitter.com/valeriangalliat)\n* [Fabrice Weinberg](https://twitter.com/fweinb)\n* [Hugo Giraudel](http://twitter.com/HugoGiraudel)\n\n\n## Licence\n\nsass-convert is [unlicensed](http://unlicense.org/).\n\n\n[sass-convert]: http://sass-lang.com/documentation/#executables\n[gulp-rename]: https://github.com/hparra/gulp-rename\n\n[npm-url]: https://www.npmjs.org/package/sass-convert\n[npm-image]: http://img.shields.io/npm/v/sass-convert.svg?style=flat-square\n[travis-url]: https://travis-ci.org/SassDoc/sass-convert?branch=master\n[travis-image]: http://img.shields.io/travis/SassDoc/sass-convert.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/SassDoc/sass-convert\n[coveralls-image]: https://img.shields.io/coveralls/SassDoc/sass-convert.svg?style=flat-square\n[depstat-url]: https://david-dm.org/SassDoc/sass-convert\n[depstat-image]: https://david-dm.org/SassDoc/sass-convert.svg?style=flat-square\n[license-image]: http://img.shields.io/npm/l/sass-convert.svg?style=flat-square\n[license-url]: LICENSE.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsassdoc%2Fsass-convert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsassdoc%2Fsass-convert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsassdoc%2Fsass-convert/lists"}