# cloc
![Screenshot](other/screenshot.png)
This is just an npm distribution of the amazing
[cloc](https://github.com/AlDanial/cloc) by
[Al Danial](https://twitter.com/pontifespresso).
[I](https://twitter.com/kentcdodds) created this package because I think `cloc`
is awesome, but didn't want to download the file and commit it to my project.
# Installation and Requirements
## Requirements
### Perl
`cloc` is written in perl and the binary that this package exposes is the `cloc`
perl script. You must have perl installed on your machine for this binary to
work.
### Node & npm
This is distributed as an `npm` package (some say that stands for "Node Package
Manager"). So you must have Node.js and npm installed.
Here are quick instructions on how to get those:
http://blog.nodeknockout.com/post/65463770933/how-to-install-node-js-and-npm
Congratulations, you've opened your life to a whole new world of awesome tooling
and other cool things :-)
## Installation
The recommended usage is temporary installation using `npx`:
```
npx cloc [options]
```
However, you can also install it globally or locally to a project.
[Learn more](https://flaviocopes.com/npm-packages-local-global/)
# Usage
In your terminal, simply type `npx cloc` to get output of the options available.
See the official [cloc](http://cloc.sourceforge.net/) website for documentation
on how to use `cloc`.
Here's the output when you run `cloc`:
```
Usage: cloc [options] <file(s)/dir(s)/git hash(es)> | <set 1> <set 2> | <report files>
Count, or compute differences of, physical lines of source code in the
given files (may be archives such as compressed tarballs or zip files,
or git commit hashes or branch names) and/or recursively below the
given directories.
Input Options
--extract-with=<cmd> This option is only needed if cloc is unable
to figure out how to extract the contents of
the input file(s) by itself.
Use <cmd> to extract binary archive files (e.g.:
.tar.gz, .zip, .Z). Use the literal '>FILE<' as
a stand-in for the actual file(s) to be
extracted. For example, to count lines of code
in the input files
gcc-4.2.tar.gz perl-5.8.8.tar.gz
on Unix use
--extract-with='gzip -dc >FILE< | tar xf -'
or, if you have GNU tar,
--extract-with='tar zxf >FILE<'
and on Windows use, for example:
--extract-with="\"c:\Program Files\WinZip\WinZip32.exe\" -e -o >FILE< ."
(if WinZip is installed there).
--list-file=<file> Take the list of file and/or directory names to
process from <file>, which has one file/directory
name per line. Only exact matches are counted;
relative path names will be resolved starting from
the directory where cloc is invoked. Set <file>
to - to read file names from a STDIN pipe.
See also --exclude-list-file.
--diff-list-file=<file> Take the pairs of file names to be diff'ed from
<file>, whose format matches the output of
--diff-alignment. (Run with that option to
see a sample.) The language identifier at the
end of each line is ignored. This enables --diff
mode and bypasses file pair alignment logic.
--vcs=<VCS> Invoke a system call to <VCS> to obtain a list of
files to work on. If <VCS> is 'git', then will
invoke 'git ls-files' to get a file list and
'git submodule status' to get a list of submodules
whose contents will be ignored. See also --git
which accepts git commit hashes and branch names.
If <VCS> is 'svn' then will invoke 'svn list -R'.
The primary benefit is that cloc will then skip
files explicitly excluded by the versioning tool
in question, ie, those in .gitignore or have the
svn:ignore property.
Alternatively <VCS> may be any system command
that generates a list of files.
Note: cloc must be in a directory which can read
the files as they are returned by <VCS>. cloc will
not download files from remote repositories.
'svn list -R' may refer to a remote repository
to obtain file names (and therefore may require
authentication to the remote repository), but
the files themselves must be local.
Setting <VCS> to 'auto' selects between 'git'
and 'svn' (or neither) depending on the presence
of a .git or .svn subdirectory below the directory
where cloc is invoked.
--unicode Check binary files to see if they contain Unicode
expanded ASCII text. This causes performance to
drop noticeably.
Processing Options
--autoconf Count .in files (as processed by GNU autoconf) of
recognized languages. See also --no-autogen.
--by-file Report results for every source file encountered.
--by-file-by-lang Report results for every source file encountered
in addition to reporting by language.
--config <file> Read command line switches from <file> instead of
the default location of /Users/kentcdodds/.config/cloc/options.txt.
The file should contain one switch, along with
arguments (if any), per line. Blank lines and lines
beginning with '#' are skipped. Options given on
the command line take priority over entries read from
the file.
--count-and-diff <set1> <set2>
First perform direct code counts of source file(s)
of <set1> and <set2> separately, then perform a diff
of these. Inputs may be pairs of files, directories,
or archives. If --out or --report-file is given,
three output files will be created, one for each
of the two counts and one for the diff. See also
--diff, --diff-alignment, --diff-timeout,
--ignore-case, --ignore-whitespace.
--diff <set1> <set2> Compute differences in code and comments between
source file(s) of <set1> and <set2>. The inputs
may be any mix of files, directories, archives,
or git commit hashes. Use --diff-alignment to
generate a list showing which file pairs where
compared. When comparing git branches, only files
which have changed in either commit are compared.
See also --git, --count-and-diff, --di
没有合适的资源?快使用搜索试试~ 我知道了~
微信小程序云开发商城源码加配置包运行
共258个文件
json:73个
js:62个
wxss:53个
需积分: 5 13 下载量 79 浏览量
2024-02-14
21:28:48
上传
评论 1
收藏 677KB ZIP 举报
温馨提示
小程序商城项目 云开发商城 云开发项目 实训项目 可以实现的功能及模块等看图 主要有商品的预览,购物车,下单结算等功能。小程序带有cms后台,有管理员登录账号,在小程序里面即可进行商品的增删改,进行分类的增删改,商品发布时可以选择相应的分类,包远程配置。 同时有技术描述通稿5k字 商品管理 分类管理 订单管理 收货地址管理 轮播图管理 用户管理 用户反馈管理
资源推荐
资源详情
资源评论
收起资源包目录
微信小程序云开发商城源码加配置包运行 (258个子文件)
cloc 682KB
cloc 294B
cloc.cmd 318B
1.jpg 36KB
index.js 16KB
index.js 14KB
datePicker.js 9KB
table.js 7KB
api.js 6KB
comm.js 5KB
tui-upload.js 5KB
validate.js 5KB
product-detail.js 4KB
product-list.js 4KB
cart.js 4KB
edit-address.js 4KB
datePicker.js 4KB
user.js 4KB
swipe-action.js 4KB
user-list.js 3KB
tr.js 3KB
numberbox.js 3KB
product-list.js 3KB
swiper-update.js 3KB
product-update.js 3KB
address.js 3KB
tui-tabs.js 3KB
submit-order.js 3KB
my-order.js 2KB
order-list.js 2KB
type-list.js 2KB
index.js 2KB
feedback-list.js 2KB
util.js 2KB
classify.js 2KB
tui-fab.js 2KB
util.js 2KB
login.js 2KB
search.js 2KB
type-update.js 2KB
modal.js 2KB
deposit.js 1KB
swiper-list.js 1KB
app.js 1KB
button.js 1KB
actionsheet.js 1KB
my-collection.js 1KB
db.js 995B
order-update.js 939B
menu.js 911B
feedback-update.js 869B
list-cell.js 855B
empty.js 846B
tag.js 696B
nomore.js 582B
bottom-popup.js 575B
loginUtil.js 559B
feedback.js 521B
loadmore.js 488B
badge.js 477B
icon.js 356B
product-body.js 338B
empower.js 268B
list-view.js 248B
config.js 223B
success.js 219B
package-lock.json 36KB
package-lock.json 35KB
app.json 2KB
project.config.json 2KB
order.json 878B
productType.json 813B
package-lock.json 734B
project.private.config.json 698B
package.json 672B
product.json 441B
.package-lock.json 398B
my-order.json 315B
package.json 307B
table.json 285B
swiper-update.json 284B
package.json 284B
address.json 283B
address.json 276B
submit-order.json 274B
swiper-list.json 273B
edit-address.json 273B
user.json 273B
index.json 243B
product-detail.json 237B
product-list.json 235B
user.json 233B
product-update.json 220B
type-update.json 220B
swiper.json 206B
my-collection.json 205B
sitemap.json 195B
feedback.json 170B
cart.json 158B
order-update.json 157B
共 258 条
- 1
- 2
- 3
资源评论
꯭那꯭个꯭人꯭不꯭就꯭是꯭我꯭
- 粉丝: 244
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- (2025)计算机网络技术考试题库(含答案).doc
- (2025)监理工程师《合同管理》考试题库及答案.doc
- (2025)辐射安全与防护培训考试题库及答案.docx
- (2025)高压电工考试题库及答案.docx
- (2025)工业机器人技术题库及答案.docx
- (2025)工作票三种人资格工作许可人考试题库及答案.docx
- (2025)工业机器人系统操作员技术及理论知识竞赛试题库(附含答案).docx
- (2025)公司员工疫情防控知识考试题库及答案.docx
- (2025)公文写作基础知识试题库及答案.docx
- (2025)公文筐考试题库及答案.docx
- (2025)公务员结构化面试万能模板.docx
- (2025)公务员考试常用数学公式总结归纳.docx
- (2025)国家基层糖尿病防治管理指南认证考试试题及答案.docx
- (2025)国学经典知识竞赛题库及答案.docx
- (2025)汉字听写大会竞赛试题库及答案(通用版).docx
- (2025)过程气体事业部产品测试题及答案.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功