make-folder-txt 2.2.2 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/make-folder-txt.js +6 -3
- package/make-folder-txt.txt +2 -34
- package/package.json +1 -1
package/bin/make-folder-txt.js
CHANGED
|
@@ -41,8 +41,11 @@ function readTxtIgnore(rootDir) {
|
|
|
41
41
|
function copyToClipboard(text) {
|
|
42
42
|
try {
|
|
43
43
|
if (process.platform === 'win32') {
|
|
44
|
-
// Windows
|
|
45
|
-
|
|
44
|
+
// Windows - use PowerShell for better handling of large content
|
|
45
|
+
const tempFile = require('os').tmpdir() + '\\make-folder-txt-clipboard-temp.txt';
|
|
46
|
+
require('fs').writeFileSync(tempFile, text, 'utf8');
|
|
47
|
+
execSync(`powershell -Command "Get-Content '${tempFile}' | Set-Clipboard"`, { stdio: 'ignore' });
|
|
48
|
+
require('fs').unlinkSync(tempFile);
|
|
46
49
|
} else if (process.platform === 'darwin') {
|
|
47
50
|
// macOS
|
|
48
51
|
execSync(`echo ${JSON.stringify(text)} | pbcopy`, { stdio: 'ignore' });
|
|
@@ -61,7 +64,7 @@ function copyToClipboard(text) {
|
|
|
61
64
|
}
|
|
62
65
|
return true;
|
|
63
66
|
} catch (err) {
|
|
64
|
-
console.warn('⚠️ Could not copy to clipboard:'
|
|
67
|
+
console.warn('⚠️ Could not copy to clipboard: ' + err.message);
|
|
65
68
|
return false;
|
|
66
69
|
}
|
|
67
70
|
}
|
package/make-folder-txt.txt
CHANGED
|
@@ -12,10 +12,9 @@ make-folder-txt/
|
|
|
12
12
|
├── bin/ [skipped]
|
|
13
13
|
├── .txtconfig
|
|
14
14
|
├── LICENSE
|
|
15
|
-
├── package.json
|
|
16
15
|
└── README.md
|
|
17
16
|
|
|
18
|
-
Total files:
|
|
17
|
+
Total files: 3
|
|
19
18
|
|
|
20
19
|
================================================================================
|
|
21
20
|
FILE CONTENTS
|
|
@@ -25,7 +24,7 @@ FILE CONTENTS
|
|
|
25
24
|
FILE: /.txtconfig
|
|
26
25
|
--------------------------------------------------------------------------------
|
|
27
26
|
{
|
|
28
|
-
"maxFileSize": "
|
|
27
|
+
"maxFileSize": "500KB",
|
|
29
28
|
"splitMethod": "none",
|
|
30
29
|
"splitSize": "5MB",
|
|
31
30
|
"copyToClipboard": true
|
|
@@ -57,37 +56,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
57
56
|
SOFTWARE.
|
|
58
57
|
|
|
59
58
|
|
|
60
|
-
--------------------------------------------------------------------------------
|
|
61
|
-
FILE: /package.json
|
|
62
|
-
--------------------------------------------------------------------------------
|
|
63
|
-
{
|
|
64
|
-
"name": "make-folder-txt",
|
|
65
|
-
"version": "2.2.1",
|
|
66
|
-
"description": "Generate a single .txt file containing the full folder structure and file contents of any project, ignoring node_modules and other junk.",
|
|
67
|
-
"main": "bin/make-folder-txt.js",
|
|
68
|
-
"bin": {
|
|
69
|
-
"make-folder-txt": "bin/make-folder-txt.js"
|
|
70
|
-
},
|
|
71
|
-
"scripts": {
|
|
72
|
-
"test": "echo \"No tests yet\" && exit 0"
|
|
73
|
-
},
|
|
74
|
-
"keywords": [
|
|
75
|
-
"folder",
|
|
76
|
-
"dump",
|
|
77
|
-
"project",
|
|
78
|
-
"structure",
|
|
79
|
-
"txt",
|
|
80
|
-
"cli",
|
|
81
|
-
"export"
|
|
82
|
-
],
|
|
83
|
-
"author": "Muhammad Saad Amin",
|
|
84
|
-
"license": "MIT",
|
|
85
|
-
"engines": {
|
|
86
|
-
"node": ">=14.0.0"
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
59
|
--------------------------------------------------------------------------------
|
|
92
60
|
FILE: /README.md
|
|
93
61
|
--------------------------------------------------------------------------------
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "make-folder-txt",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"description": "Generate a single .txt file containing the full folder structure and file contents of any project, ignoring node_modules and other junk.",
|
|
5
5
|
"main": "bin/make-folder-txt.js",
|
|
6
6
|
"bin": {
|