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

@tikkhun/create

Package Overview
Dependencies
Maintainers
0
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tikkhun/create

创建项目

  • 0.2.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-95.65%
Maintainers
0
Weekly downloads
 
Created
Source

create-tools

项目创建工具: 一个统一使用模板生成初始化项目的工具

项目创建最重要的其实就是下载, 复制。 由于模板跟随npm发布,所以下载也省了 其次就是模板编译,其实就是提供了一些变量给用户来自定义,比如文件名,项目名称等等。

实现思路

复制

使用fs-extra的批量复制进行复制

模板编译

采用了 ejs 作为模板引擎,仅当文件名末尾加上 .ejs才进行模板编译

安装

yarn global add @tikkhun/create

使用

tikkhun-create --template '../template' --projectName <你项目的名称>

选项

tikkhun-create --help

FAQs

Package last updated on 07 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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