{"id":16352789,"url":"https://github.com/mikemaccana/sass-npm","last_synced_at":"2025-03-23T01:30:58.561Z","repository":{"id":143907531,"uuid":"46560500","full_name":"mikemaccana/sass-npm","owner":"mikemaccana","description":"Import SASS files from npm modules","archived":false,"fork":false,"pushed_at":"2015-11-20T12:28:08.000Z","size":2,"stargazers_count":7,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T11:47:29.697Z","etag":null,"topics":[],"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/mikemaccana.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":"2015-11-20T12:25:31.000Z","updated_at":"2017-11-30T21:25:27.000Z","dependencies_parsed_at":"2023-03-21T10:11:58.388Z","dependency_job_id":null,"html_url":"https://github.com/mikemaccana/sass-npm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikemaccana%2Fsass-npm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikemaccana%2Fsass-npm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikemaccana%2Fsass-npm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikemaccana%2Fsass-npm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikemaccana","download_url":"https://codeload.github.com/mikemaccana/sass-npm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244257251,"owners_count":20424131,"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-10-11T01:27:30.862Z","updated_at":"2025-03-23T01:30:58.324Z","avatar_url":"https://github.com/mikemaccana.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sass-npm\n\nA [SASS importer](https://github.com/sass/node-sass#importer--v200---experimental) that allows you to import SASS using an npm module name.\n\nThis allows you to keep your SASS files inside your frontend npm modules.\n\nIf you're using browserify, you probably want this!\n\n## Contributing\n\nI just wrote this because I needed it. Pull requests gladly accepted!\n\n## Installation\n\n\tnpm install sass-npm\n\n## Usage\n\nsass-npm currently just looks for `style.scss` inside the top level of a npm module to determine whether to load it. This is fine for me right now, but we could change this in future - let me know if you have suggestions!\n\nIn your sass file:\n\n\t// Since node_modules/npm-module-name/style.scss exists, this will be imported.\n\t@import \"npm-module-name\";\n\n\t// Since just-a-sass-file isn't an installed npm module, it will be imported as a regular SCSS file.\n\t@import \"just-a-sass-file\";\n\nI normally use gulp-sass (which has the same 'importer' option as regular SASS)\n\n\t\tvar gulp = require('gulp'),\n\t\t\tsass = require('gulp-sass'),\n\t\t\tsassNpm = require('sass-npm-import')();\n\nThen, in your .pipe(sass()), add the importer as an option:\n\n\t.pipe(sass({\n\t\tpaths: ['public/scss'],\n\t\timporter: sassNpm.importer,\n\t}))\n\n## Author\n\nMike MacCana \u003cmike@certsimple.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikemaccana%2Fsass-npm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikemaccana%2Fsass-npm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikemaccana%2Fsass-npm/lists"}