Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@sunxdd/i5ting_toc
Advanced tools
Readme
i5ting_toc a node npm wrapper of i5ting_ztree_toc https://github.com/i5ting/i5ting_ztree_toc
npm install -g i5ting_toc
➜ tocmd.npm git:(master) ✗ i5ting_toc -h
Usage: i5ting_toc a node npm wrapper of i5ting_ztree_toc https://github.com/i5ting/i5ting_ztree_toc
Options:
-h, --help output usage information
-V, --version output the version number
-f, --file [filename] default is README.md
-o, --open open in browser
-v, --verbose 打印详细日志
这个版本的命令比较简单,只有一个-f
参数,如果没有填写,默认使用README.md
,常见用法
i5ting_toc -f sample.md -o
示例说明
var is_open = true;
var markd_config = {
debug: false,
index: true
}
//函数可以返回当前正在执行的项目路径
var pwd = process.cwd()
var source_file_name = pwd + '/' + source_file
var file_name = source_file_name.split('/').pop();;
var _file_name = file_name.split('.')[0];
var dest_file_path = pwd + '/preview/' + _file_name + '.html';
console.log('pwd=' + pwd);
console.log('source_file_name=' + source_file_name);
console.log('dest_file_path=' + dest_file_path);
require('../index')(pwd, source_file_name, dest_file_path, is_open, markd_config);
参数说明
current path
var pwd = process.cwd()
file path
__dirname
use shelljs judge dir is
if (test('-d', preview_path)) {
/* do something with dir */
mkdir('-p', preview_path);
};
http://documentup.com/arturadib/shelljs
template for compile use handlebars
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)i5ting
shiren1118@126.com如有建议或意见,请在issue提问或邮件
this repo is released under the MIT License.
FAQs
tocmd.npm:a npm wrapper of i5ting_ztree_toc
The npm package @sunxdd/i5ting_toc receives a total of 0 weekly downloads. As such, @sunxdd/i5ting_toc popularity was classified as not popular.
We found that @sunxdd/i5ting_toc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.