Installations
npm install gulp-sass-vars-to-js
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
6.11.5
NPM Version
3.10.10
Score
64.8
Supply Chain
76.1
Quality
73.1
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
wisercoder
Download Statistics
Total Downloads
1,601
Last Day
1
Last Week
7
Last Month
23
Last Year
144
GitHub Statistics
6 Commits
1 Watching
1 Branches
1 Contributors
Bundle Size
33.13 kB
Minified
9.61 kB
Minified + Gzipped
Package Meta Information
Latest Version
0.1.2
Package Id
gulp-sass-vars-to-js@0.1.2
Size
4.38 kB
NPM Version
3.10.10
Node Version
6.11.5
Total Downloads
Cumulative downloads
Total Downloads
1,601
Last day
-75%
1
Compared to previous day
Last week
-30%
7
Compared to previous week
Last month
360%
23
Compared to previous month
Last year
39.8%
144
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
Dev Dependencies
1
gulp-sass-vars-to-js
Gulp plugin to export sass variables to JavaScript
Helps keep your code and sass styles in sync
This gulp plugin enables you to reference your Sass variables in your TypeScript code.
First install gulp-sass-vars-to-js
npm install gulp-sass-vars-to-js --save-dev
Here's an example gulpfile.js to extract variables from your .scss file and output them to a .ts file.
1var gulp = require('gulp'); 2var rename = require('gulp-rename'); 3var sassVarsToJs = require('gulp-sass-vars-to-js'); 4 5gulp.task('sassvars', function() { 6 gulp.src(['style/source.scss']) 7 .pipe(sassVarsToJs()) 8 .pipe(rename('sassvars.ts')) 9 .pipe(gulp.dest('generated')) 10}) 11 12gulp.task('default', ['sassvars'], function() { 13})
Here's an example scss file:
1$side-bar-width: 250px; 2 3.side-bar { 4 display: inline-block; 5 width: $side-bar-width; 6}
Note that the identifier is defined with a $ in the first column and that there is a semicolon at the end.
Here's the resulting .ts file that's generated:
1// This file was automatically generated. Do not edit by hand. 2 3export const SideBarWidth = 250;
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 0/6 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
Last Scanned on 2025-01-20
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More