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

sass-itcss-generator

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

sass-itcss-generator - npm Package Compare versions

Comparing version 1.0.0 to 1.2.0

bin/sass-itcss-generator.js

16

package.json
{
"name": "sass-itcss-generator",
"version": "1.0.0",
"version": "1.2.0",
"description": "Tool to generate Sass files following ITCSS principles and BEM",

@@ -9,8 +9,4 @@ "main": "./src/index.js",

},
"bin": {
"sass-itcss-generator": "./src/index.js"
},
"bin": "./bin/sass-itcss-generator.js",
"scripts": {
"preinstall": "node bin/check-node-version.js",
"prestart": "node bin/check-node-version.js",
"test": "jest --config ./jest.config.json",

@@ -32,3 +28,2 @@ "test:watch": "npm run test -- --watch"

},
"type": "module",
"author": "Ben Brehaut",

@@ -49,5 +44,8 @@ "license": "MIT",

"jest": "^26.6.3",
"semantic-release": "^17.4.1",
"yargs": "latest"
"semantic-release": "^17.4.1"
},
"dependencies": {
"esm": "^3.2.25",
"yargs": "^17.0.1"
}
}

@@ -1,27 +0,11 @@

#! /usr/bin/env node
'use strict';
import { existsSync, mkdir, mkdirSync, writeFile, copyFile } from 'fs';
import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
import { FOLDERS } from './constants.js';
const argv = yargs(hideBin(process.argv)).argv;
const name = argv._[0].toString();
// if name parameter is not passed, throw error.
if (!name) {
throw new Error('❌ Please include the directory name');
}
// Create the folders and files
init(name);
// Console out completion
console.log(`✅ Completed`);
/**
* Initialise the function
* Create the folders and files
* @param {string} folderName - The folder name to output to, comes from cli
*/
function init(folderName) {
export function sassItcssGenerator(folderName) {
// If folder already exists, throw error.

@@ -32,3 +16,3 @@ if (existsSync(folderName)) {

console.log(`🔨 Creating ${name} folder`);
console.log(`🔨 Creating ${folderName} folder`);

@@ -47,2 +31,5 @@ // Create directory passed by user

createIndexFile(folderName);
// Console out completion
console.log(`✅ Completed`);
}

@@ -49,0 +36,0 @@

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