Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

inject-scss

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inject-scss - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

21

inject-scss.js
var fs = require('fs')
/*
Convert js vars into scss vars!
usage:
var path = path.join(__dirname, 'public/styles/_inject.scss')
var vars = {CDN: '/path/to/cdn/'}
// defaults to scss
scssInjector(path, vars)
// ...but support sass, too
var path = path.join(__dirname, 'public/styles/_inject.sass')
scssInjector(path, vars, 'sass')
// Then, in your scss file...
@import './_inject.scss'
*/
module.exports = function(outputPath, vars, type){

@@ -25,0 +4,0 @@

2

package.json
{
"name": "inject-scss",
"version": "1.0.0",
"version": "1.0.1",
"description": "Node util for generating s*ss variables from js objects",

@@ -5,0 +5,0 @@ "main": "inject-scss.js",

# inject-scss
Node util for generating s*ss variables from js objects
[![npm version](https://badge.fury.io/js/inject-scss.svg)](https://badge.fury.io/js/inject-scss)
`npm install --save inject-scss`
```javascript
var scssInjector = require('inject-scss')
var path = require('path')

@@ -20,2 +26,3 @@ var fs = require('fs')

@import './_inject.scss'
```
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc