seng-generator
Advanced tools
Comparing version 0.2.1 to 0.3.0
{ | ||
"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 @@ } |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
22024
322
162
0