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

create-cmd

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-cmd - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

dist/chunk-WC6PEVOQ.mjs

6

package.json
{
"name": "create-cmd",
"version": "0.1.3",
"version": "0.1.4",
"description": "Scaffolding Your Project",

@@ -44,9 +44,9 @@ "main": "bin/create-cmd.mjs",

"@types/minimist": "^1.2.2",
"@types/node": "^18.0.6",
"@types/node": "^18.6.1",
"@types/prompts": "^2.0.14",
"esno": "^0.16.3",
"prettier": "^2.7.1",
"tsup": "^6.1.3",
"tsup": "^6.2.0",
"typescript": "^4.7.4"
}
}

@@ -23,10 +23,14 @@ # create-cmd

- `docsify`
- `esbuild`
- `hope`
- `rollup`
- `tsc`
- `unbuild`
- `vuepress`
- `hope`
- `vitepress`
- `docsify`
- `vue`
- `vuepress`
- `react`
- `webpack`
- `parcel`

@@ -1,12 +0,12 @@

> ![logo](_media/icon.svg)
>
> # docsify <small>4.9.1</small>
>
> > A magical documentation site generator.
>
> - Simple and lightweight (~21kB gzipped)
> - No statically built html files
> - Multiple themes
>
> [GitHub](https://github.com/docsifyjs/docsify/)
> [Getting Started](#docsify)
![logo](_media/icon.svg)
# docsify <small>4.12.2</small>
> A magical documentation site generator.
- Simple and lightweight
- No statically built html files
- Multiple themes
[GitHub](https://github.com/docsifyjs/docsify/)
[Getting Started](#docsify)
- 基础
- [快速开始](/quickstart.md)
- [多页文档](/more-pages.md)
- [定制导航栏](/custom-navbar.md)
- [封面](/cover.md)
- 配置
- [配置项](/configuration.md)
- [主题](/themes.md)
- [使用插件](/plugins.md)
- [Markdown 配置](/markdown.md)
- [代码高亮](/language-highlight.md)
- [主题](/themes.md)
- 入门
- [demo](demo.md)
- [快速开始](/quickstart.md)
- [cli](/cli.md)
- [多页文档](/more-pages.md)
- [定制导航栏](/custom-navbar.md)
- [封面](/cover.md)

@@ -12,18 +8,1 @@ - 定制化

- [配置项](/configuration.md)
- [主题](/themes.md)
- [插件列表](/plugins.md)
- [开发插件](/write-a-plugin.md)
- [Markdown 配置](/markdown.md)
- [代码高亮](/language-highlight.md)
- 指南
- [部署](/deploy.md)
- [文档助手](/helpers.md)
- [兼容 Vue](/vue.md)
- [CDN](/cdn.md)
- [离线模式(PWA)](/pwa.md)
- [服务端渲染 (SSR)](/ssr.md)
- [文件嵌入<sup style="color:red">(new)<sup>](/embed-files.md)
- [Awesome docsify](/awesome.md)

@@ -9,3 +9,3 @@ {

"dependencies": {
"@vueuse/core": "^8.9.4",
"@vueuse/core": "^9.0.0",
"@vueuse/head": "^0.7.7",

@@ -15,7 +15,7 @@ "markdown-it-prism": "^2.2.4",

"sass": "^1.54.0",
"vite-plugin-vue-markdown": "^0.20.1",
"vite-plugin-vue-markdown": "^0.21.1",
"vue": "^3.2.37"
},
"devDependencies": {
"@types/node": "^18.6.0",
"@types/node": "^18.6.1",
"@vitejs/plugin-vue": "^3.0.1",

@@ -25,4 +25,4 @@ "cross-env": "^7.0.3",

"unplugin-auto-import": "^0.10.1",
"unplugin-vue-components": "^0.21.1",
"vite": "^3.0.2",
"unplugin-vue-components": "^0.21.2",
"vite": "^3.0.3",
"vite-plugin-pages": "^0.25.0",

@@ -29,0 +29,0 @@ "vite-ssg": "latest",

@@ -5,114 +5,33 @@ # 字符串

PowerShell字符串是具有`System.String`类型的对象。它是一种表示字符序列的数据类型,可以是文字常量或某种变量。
```java
public void writeText(){
PrintWriter writer = new PrintWriter("the-file-name.txt", "UTF-8");
writer.println("The first line");
writer.println("The second line");
writer.close()
}
```
可以在PowerShell中使用单引号或双引号来定义字符串。这两个字符串都是使用相同的`System.String`对象类型创建的。
## 1.示例
**示例1:**此示例描述如何在字符串中使用单引号:
```powershell
PS C:\>$String1='It is a Single Quoted String'
PS C:\>$String1
It is a Single Quoted String
Shell
```go
func TestHello(t *testing.T) {
want := "Hello World!"
if Hello() != want {
t.Errorf("Hello() != %s", want)
}
}
```
**示例2:**此示例描述如何在字符串中使用双引号:
Colons can be used to align columns.
```powershell
PS C:\> $String2="It is a double Quoted String"
PS C:\> $String2
It is a double Quoted String
Shell
```
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | |
| col 2 is | centered | |
| zebra stripes | are neat | |
## 2.串联
The outer pipes (|) are optional, and you don't need to make the raw Markdown line up prettily. You can also use inline Markdown.
字符串的连接使用加号执行。
**示例1:** 下面的示例描述如何连接两个字符串变量:
```powershell
PS C:\> $s1="XN"
PS C:\> $s2="TUTOR"
PS C:\> $s1+$s2
Shell
```
上例中最后一条命令的输出将显示为:`XNTUTOR`
**示例2:**也可以使用join运算符来连接字符串。下面的示例描述如何使用此运算符:
```powershell
PS C:\> $s1,$s2 -join ".COM"
Shell
```
本示例的输出将显示为:`XN.COMTUTOR`
**示例3:**也可以使用方法`concat()`来连接字符串。下面的示例描述如何使用此方法:
```powershell
$s1="Power"
PS C:\> $s2="Shell"
PS C:\> [System.String]::Concat($s1,$s2)
Shell
```
此示例的输出也将显示为:`PowerShell`
## 3.子串
`SubString`是一种方法,它接受两个重载参数并返回较长字符串的一部分。 这两个参数都是数值,并用逗号(`,`)分隔。第一参数是开始值,第二个表示想从开始位置向往右的字符数量。
**示例:**下面的示例跳过前三个字符,并从给定的字符串返回下一个七个字符。
```powershell
PS C:\> $s1="Windows PowerShell"
PS C:\> $s1.SubString(3,7)
Shell
```
上面示例中的第二个命令显示以下输出:
```powershell
dows Po
Shell
```
## 4.字符串格式
字符串格式化是在字符串中插入一些字符或字符串的过程。 我们可以使用`-f`运算符来格式化字符串。
```powershell
$s1="Windows PowerShell"
$s2="XNTUTOR"
$formattedString = "{0} {1}...." -f $s1,$s2
$formattedString
Shell
```
执行上面示例代码,得到以下结果:
```powershell
Windows PowerShell XNTUTOR....
Shell
```
## 5.字符替换
`replace()`方法接受两个参数,并用于替换字符串中的字符。
**示例:**在下面的示例中,我们将给定字符串中的字符`P`替换为`S`。
```powershell
PS C:\> $s1="Windows Powerxhell"
PS C:\> $s1.replace("P","S")
Shell
```
上面示例中的第二个命令显示以下输出:
```powershell
indows Sowerxhell
```
Markdown | Less | Pretty
--- | --- | ---
*Still* | `renders` | **nicely**
1 | 2 | 3

@@ -50,5 +50,2 @@ // Generated by 'unplugin-auto-import'

const isRef: typeof import('vue')['isRef']
const logicAnd: typeof import('@vueuse/core')['logicAnd']
const logicNot: typeof import('@vueuse/core')['logicNot']
const logicOr: typeof import('@vueuse/core')['logicOr']
const makeDestructurable: typeof import('@vueuse/core')['makeDestructurable']

@@ -122,2 +119,10 @@ const mapActions: typeof import('pinia')['mapActions']

const useActiveElement: typeof import('@vueuse/core')['useActiveElement']
const useArrayEvery: typeof import('@vueuse/core')['useArrayEvery']
const useArrayFilter: typeof import('@vueuse/core')['useArrayFilter']
const useArrayFind: typeof import('@vueuse/core')['useArrayFind']
const useArrayFindIndex: typeof import('@vueuse/core')['useArrayFindIndex']
const useArrayJoin: typeof import('@vueuse/core')['useArrayJoin']
const useArrayMap: typeof import('@vueuse/core')['useArrayMap']
const useArrayReduce: typeof import('@vueuse/core')['useArrayReduce']
const useArraySome: typeof import('@vueuse/core')['useArraySome']
const useAsyncQueue: typeof import('@vueuse/core')['useAsyncQueue']

@@ -133,3 +138,2 @@ const useAsyncState: typeof import('@vueuse/core')['useAsyncState']

const useCached: typeof import('@vueuse/core')['useCached']
const useClamp: typeof import('@vueuse/core')['useClamp']
const useClipboard: typeof import('@vueuse/core')['useClipboard']

@@ -229,4 +233,6 @@ const useColorMode: typeof import('@vueuse/core')['useColorMode']

const useStyleTag: typeof import('@vueuse/core')['useStyleTag']
const useSupported: typeof import('@vueuse/core')['useSupported']
const useSwipe: typeof import('@vueuse/core')['useSwipe']
const useTemplateRefsList: typeof import('@vueuse/core')['useTemplateRefsList']
const useTextDirection: typeof import('@vueuse/core')['useTextDirection']
const useTextSelection: typeof import('@vueuse/core')['useTextSelection']

@@ -233,0 +239,0 @@ const useTextareaAutosize: typeof import('@vueuse/core')['useTextareaAutosize']

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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