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

hlink

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hlink - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3-beta.0

2

lib/cli.js

@@ -37,3 +37,3 @@ #!/usr/bin/env node

var rm_1 = __importDefault(require("./rm"));
var cli = (0, meow_1.default)("\n QQ\u53CD\u9988\u7FA4\u53F7\uFF1A" + chalk_1.default.cyanBright('807101297') + "\n\n \u7528\u6CD5:\n $ hlink [--Options] [sourceDir] destPath\n " + chalk_1.default.gray('备份hlink目录缓存等 备份路径') + "\n $ hlink backup /path/to/back\n " + chalk_1.default.gray('还原hlink目录缓存等 还原路径') + "\n $ hlink restore /path/to/restore\n " + chalk_1.default.gray('还原hlink目录缓存等 还原路径') + "\n $ hlink rm /path/to/rm\n\n \u53EF\u914D\u7F6E\u9009\u9879:\n --saveMode,-s \u4FDD\u5B58\u6A21\u5F0F,\u9ED8\u8BA4\u4E3A\u6A21\u5F0F0\n " + chalk_1.default.gray("saveMode=1 \u4FDD\u5B58\u4E00\u7EA7\u76EE\u5F55\n saveMode=0 \u4FDD\u5B58\u539F\u6709\u7684\u76F8\u5BF9\u6E90\u5730\u5740\u7684\u8DEF\u5F84") + "\n\n --includeExtname,-i \u5305\u542B\u7684\u6269\u5C55\u540D,\u591A\u4E2A\u7528','\u9694\u5F00\n " + chalk_1.default.gray("\u5982\u679C\u4E0D\u914D\u7F6E\u8BE5\u9879,\u4F1A\u91C7\u7528\u4EE5\u4E0B\u7B56\u7565\n * 1. \u914D\u7F6E\u4E86excludeExtnam,\u5219\u94FE\u63A5\u6587\u4EF6\u4E3A\u6392\u9664\u540E\u7684\u5176\u4ED6\u6587\u4EF6\n * 2. \u672A\u914D\u7F6EexcludeExtname,\u5219\u94FE\u63A5\u6587\u4EF6\u4E3A\u76EE\u5F55\u4E0B\u7684\u6240\u6709\u6587\u4EF6") + "\n\n --excludeExtname,-e \u6392\u9664\u7684\u6269\u5C55\u540D,\u591A\u4E2A\u7528','\u9694\u5F00\u5982\u679C\u914D\u7F6E\u4E86" + chalk_1.default.cyan('includeExtname') + "\u5219\u8BE5\u914D\u7F6E\u65E0\u6548\n\n --maxFindLevel,-m \u67E5\u627E\u6587\u4EF6\u7684\u6700\u5927\u5C42\u7EA7,\u9ED8\u8BA44\u5C42\n --delete,-d \u5220\u9664\u76EE\u6807\u5730\u5740\u6240\u6709\u786C\u94FE,\u9ED8\u8BA4\u4E3Afalse\n --generateConfig,-g \u751F\u6210config\u6587\u4EF6,\u53EF\u4EE5\u4F7F\u7528 hlink -g \u67E5\u770B\u8DEF\u5F84\n --removeConfig,-r \u5220\u9664\u914D\u7F6E\u6587\u4EF6\n --configPath,-c \u6307\u5B9A\u914D\u7F6E\u6587\u4EF6\u8DEF\u5F84,\u8BF7\u4F7F\u7528\u7EDD\u5BF9\u8DEF\u5F84\n --openCache,-o \u662F\u5426\u6253\u5F00\u7F13\u5B58,\u9ED8\u8BA4\u4E3Atrue, \u4F1A\u6253\u5F00\n \u6253\u5F00\u540E,\u6BCF\u6B21\u786C\u94FE\u540E\u4F1A\u628A\u5BF9\u5E94\u6587\u4EF6\u5B58\u5165\u7F13\u5B58,\u5C31\u7B97\u4E0B\u6B21\u5220\u9664\u786C\u94FE\uFF0C\u4E5F\u4E0D\u4F1A\u8FDB\u884C\u786C\u94FE\n\n --mkdirIfSingle \u662F\u5426\u4E3A\u72EC\u7ACB\u6587\u4EF6\u521B\u5EFA\u540C\u540D\u6587\u4EF6\u5939,\u9ED8\u8BA4\u4E3Atrue,\u4F1A\u521B\u5EFA\n\n \u4F8B\u5B50:\n " + chalk_1.default.grey('# 创建 /share/download 下面文件到目标地址 /share/movie') + "\n $ hlink /share/download /share/movie\n\n " + chalk_1.default.grey('# 删除 /share/download 中文件在 /share/movie 下面的对应硬链的文件') + "\n $ hlink -d /share/download /share/movie\n\n " + chalk_1.default.grey('# 交互删除(推荐)') + "\n $ hlink -d\n\n " + chalk_1.default.grey('# 生成配置文件') + "\n $ hlink -g", {
var cli = (0, meow_1.default)("\n QQ\u53CD\u9988\u7FA4\u53F7\uFF1A" + chalk_1.default.cyanBright('807101297') + "\n\n \u7528\u6CD5:\n $ hlink [--Options] [sourceDir] destPath\n " + chalk_1.default.gray('备份hlink目录缓存等 备份路径') + "\n $ hlink backup /path/to/back\n " + chalk_1.default.gray('还原hlink目录缓存等 还原路径') + "\n $ hlink restore /path/to/restore\n " + chalk_1.default.gray('移除源文件及通过hlink创建的相关硬链') + "\n $ hlink rm /path/to/rm\n\n \u53EF\u914D\u7F6E\u9009\u9879:\n --saveMode,-s \u4FDD\u5B58\u6A21\u5F0F,\u9ED8\u8BA4\u4E3A\u6A21\u5F0F0\n " + chalk_1.default.gray("saveMode=1 \u4FDD\u5B58\u4E00\u7EA7\u76EE\u5F55\n saveMode=0 \u4FDD\u5B58\u539F\u6709\u7684\u76F8\u5BF9\u6E90\u5730\u5740\u7684\u8DEF\u5F84") + "\n\n --includeExtname,-i \u5305\u542B\u7684\u6269\u5C55\u540D,\u591A\u4E2A\u7528','\u9694\u5F00\n " + chalk_1.default.gray("\u5982\u679C\u4E0D\u914D\u7F6E\u8BE5\u9879,\u4F1A\u91C7\u7528\u4EE5\u4E0B\u7B56\u7565\n * 1. \u914D\u7F6E\u4E86excludeExtnam,\u5219\u94FE\u63A5\u6587\u4EF6\u4E3A\u6392\u9664\u540E\u7684\u5176\u4ED6\u6587\u4EF6\n * 2. \u672A\u914D\u7F6EexcludeExtname,\u5219\u94FE\u63A5\u6587\u4EF6\u4E3A\u76EE\u5F55\u4E0B\u7684\u6240\u6709\u6587\u4EF6") + "\n\n --excludeExtname,-e \u6392\u9664\u7684\u6269\u5C55\u540D,\u591A\u4E2A\u7528','\u9694\u5F00\u5982\u679C\u914D\u7F6E\u4E86" + chalk_1.default.cyan('includeExtname') + "\u5219\u8BE5\u914D\u7F6E\u65E0\u6548\n\n --maxFindLevel,-m \u67E5\u627E\u6587\u4EF6\u7684\u6700\u5927\u5C42\u7EA7,\u9ED8\u8BA44\u5C42\n --delete,-d \u5220\u9664\u76EE\u6807\u5730\u5740\u6240\u6709\u786C\u94FE,\u9ED8\u8BA4\u4E3Afalse\n --generateConfig,-g \u751F\u6210config\u6587\u4EF6,\u53EF\u4EE5\u4F7F\u7528 hlink -g \u67E5\u770B\u8DEF\u5F84\n --removeConfig,-r \u5220\u9664\u914D\u7F6E\u6587\u4EF6\n --configPath,-c \u6307\u5B9A\u914D\u7F6E\u6587\u4EF6\u8DEF\u5F84,\u8BF7\u4F7F\u7528\u7EDD\u5BF9\u8DEF\u5F84\n --openCache,-o \u662F\u5426\u6253\u5F00\u7F13\u5B58,\u9ED8\u8BA4\u4E3Atrue, \u4F1A\u6253\u5F00\n \u6253\u5F00\u540E,\u6BCF\u6B21\u786C\u94FE\u540E\u4F1A\u628A\u5BF9\u5E94\u6587\u4EF6\u5B58\u5165\u7F13\u5B58,\u5C31\u7B97\u4E0B\u6B21\u5220\u9664\u786C\u94FE\uFF0C\u4E5F\u4E0D\u4F1A\u8FDB\u884C\u786C\u94FE\n\n --mkdirIfSingle \u662F\u5426\u4E3A\u72EC\u7ACB\u6587\u4EF6\u521B\u5EFA\u540C\u540D\u6587\u4EF6\u5939,\u9ED8\u8BA4\u4E3Atrue,\u4F1A\u521B\u5EFA\n\n \u4F8B\u5B50:\n " + chalk_1.default.grey('# 创建 /share/download 下面文件到目标地址 /share/movie') + "\n $ hlink /share/download /share/movie\n\n " + chalk_1.default.grey('# 删除 /share/download 中文件在 /share/movie 下面的对应硬链的文件') + "\n $ hlink -d /share/download /share/movie\n\n " + chalk_1.default.grey('# 交互删除(推荐)') + "\n $ hlink -d\n\n " + chalk_1.default.grey('# 生成配置文件') + "\n $ hlink -g", {
flags: {

@@ -40,0 +40,0 @@ saveMode: {

@@ -93,3 +93,3 @@ "use strict";

});
task = [];
task = [(0, execa_1.default)('rm', ['-r', fileOrDir_1])];
if (rmFiles_1.length) {

@@ -96,0 +96,0 @@ task.push((0, execa_1.default)('rm', ['-r'].concat(rmFiles_1)));

@@ -9,2 +9,3 @@ "use strict";

var lsirf_1 = __importDefault(require("./lsirf"));
var fs_extra_1 = __importDefault(require("fs-extra"));
function parseLs(dir, callback) {

@@ -35,2 +36,5 @@ var str = (0, lsirf_1.default)(dir);

: '', filepath);
if (!fs_extra_1.default.existsSync(fullPath) && fullPath.endsWith('*')) {
fullPath = fullPath.slice(0, fullPath.lastIndexOf('*'));
}
callback(number, fullPath);

@@ -37,0 +41,0 @@ }

{
"name": "hlink",
"version": "0.5.2",
"version": "0.5.3-beta.0",
"description": "hlink",

@@ -5,0 +5,0 @@ "license": "MIT",

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