New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

seng-generator

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

seng-generator - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

2

package.json
{
"name": "seng-generator",
"version": "0.2.1",
"version": "0.3.0",
"description": "A CLI generator to create code based on templates",

@@ -5,0 +5,0 @@ "preferGlobal": true,

@@ -46,2 +46,3 @@ # seng generator

* ```name_cc```: Name converted to CamelCase
* ```name_snc```: Name converted to snake_case

@@ -48,0 +49,0 @@ Don't forget to run ```$ sg init``` or set the template path with ```$ sg settings``` to use your custom templates with seng-generator

@@ -8,2 +8,3 @@ const path = require('path');

const toSlugCase = require('to-slug-case');
const toSnakeCase = require('to-snake-case');
const toCamelCase = require('to-camel-case');

@@ -32,2 +33,3 @@ const toPascalCase = require('to-pascal-case');

metalsmith(fullTemplatePath)

@@ -53,2 +55,3 @@ .metadata(Object.assign({}, getNames(options.name)))

function getNames(name) {
return {

@@ -58,3 +61,4 @@ name,

name_pc: toPascalCase(name),
name_sc: toSlugCase(name)
name_sc: toSlugCase(name),
name_snc: toSnakeCase(name),
}

@@ -61,0 +65,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