aslopcleaner 1.0.4 → 1.0.6
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/dist/cli.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import path from 'node:path';
|
|
|
3
3
|
import process from 'node:process';
|
|
4
4
|
import { readFile, writeFile } from 'node:fs/promises';
|
|
5
5
|
import * as readline from 'node:readline/promises';
|
|
6
|
-
import { R as REPLACEMENT_RULES, s as scanDirectory, d as shouldSkipSensitivePath, b as applyOccurrences, c as countByMatch, a as REPLACEMENT_RULE_MAP } from './scanner-
|
|
6
|
+
import { R as REPLACEMENT_RULES, s as scanDirectory, d as shouldSkipSensitivePath, b as applyOccurrences, c as countByMatch, a as REPLACEMENT_RULE_MAP } from './scanner-CqOdEmYc.mjs';
|
|
7
7
|
import 'fast-glob';
|
|
8
8
|
|
|
9
9
|
function parseArgs(argv) {
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export { F as FAST_GLOB_IGNORE_PATTERNS, M as MAX_FILE_SIZE_BYTES, R as REPLACEMENT_RULES, a as REPLACEMENT_RULE_MAP, b as applyOccurrences, c as countByMatch, f as findOccurrences, i as isProbablyBinary, n as normalizeGlobPath, s as scanDirectory, d as shouldSkipSensitivePath } from './scanner-
|
|
2
|
+
export { F as FAST_GLOB_IGNORE_PATTERNS, M as MAX_FILE_SIZE_BYTES, R as REPLACEMENT_RULES, a as REPLACEMENT_RULE_MAP, b as applyOccurrences, c as countByMatch, f as findOccurrences, i as isProbablyBinary, n as normalizeGlobPath, s as scanDirectory, d as shouldSkipSensitivePath } from './scanner-CqOdEmYc.mjs';
|
|
3
3
|
import 'fast-glob';
|
|
4
4
|
import 'node:path';
|
|
5
5
|
import 'node:fs/promises';
|
|
@@ -338,7 +338,7 @@ const REPLACEMENT_RULES = [
|
|
|
338
338
|
{ match: "\uFF02", replacement: '"', description: "fullwidth quotation mark" },
|
|
339
339
|
{ match: "\uFF07", replacement: "'", description: "fullwidth apostrophe" },
|
|
340
340
|
{ match: "\u2032", replacement: "'", description: "prime" },
|
|
341
|
-
{ match: "\u2035", replacement: "
|
|
341
|
+
{ match: "\u2035", replacement: "`", description: "reversed prime" },
|
|
342
342
|
{ match: "\u02B9", replacement: "'", description: "modifier letter prime" },
|
|
343
343
|
{ match: "\u02BB", replacement: "'", description: "modifier letter turned comma" },
|
|
344
344
|
{ match: "\u02BC", replacement: "'", description: "modifier letter apostrophe" },
|
|
@@ -363,14 +363,13 @@ const REPLACEMENT_RULES = [
|
|
|
363
363
|
description: "modifier letter vertical line"
|
|
364
364
|
},
|
|
365
365
|
{ match: "\u02CA", replacement: "'", description: "modifier letter acute accent" },
|
|
366
|
-
{ match: "\u02CB", replacement: "
|
|
366
|
+
{ match: "\u02CB", replacement: "`", description: "modifier letter grave accent" },
|
|
367
367
|
{
|
|
368
368
|
match: "\u02F4",
|
|
369
|
-
replacement: "
|
|
369
|
+
replacement: "`",
|
|
370
370
|
description: "modifier letter middle grave accent"
|
|
371
371
|
},
|
|
372
372
|
{ match: "\xB4", replacement: "'", description: "acute accent" },
|
|
373
|
-
{ match: "`", replacement: "'", description: "grave accent" },
|
|
374
373
|
{ match: "\u2033", replacement: '""', description: "double prime" },
|
|
375
374
|
{ match: "\u2036", replacement: '""', description: "reversed double prime" },
|
|
376
375
|
{
|
|
@@ -433,7 +432,7 @@ const REPLACEMENT_RULES = [
|
|
|
433
432
|
{ match: "\xAC", replacement: "!", description: "not sign" },
|
|
434
433
|
{ match: "\xB1", replacement: "+/-", description: "plus-minus" },
|
|
435
434
|
{ match: "\u2213", replacement: "-/+", description: "minus-or-plus" },
|
|
436
|
-
{ match: "\xD7", replacement: "
|
|
435
|
+
{ match: "\xD7", replacement: "x", description: "times sign" },
|
|
437
436
|
{ match: "\xF7", replacement: "/", description: "division sign" },
|
|
438
437
|
{ match: "\u2044", replacement: "/", description: "fraction slash" },
|
|
439
438
|
{ match: "\u2215", replacement: "/", description: "division slash" },
|
|
@@ -772,8 +771,6 @@ const REPLACEMENT_RULES = [
|
|
|
772
771
|
{ match: "\uFF05", replacement: "%", description: "fullwidth percent" },
|
|
773
772
|
{ match: "\uFF0B", replacement: "+", description: "fullwidth plus" },
|
|
774
773
|
{ match: "\uFF1D", replacement: "=", description: "fullwidth equals" },
|
|
775
|
-
{ match: "\uFF02", replacement: '"', description: "fullwidth quotation mark" },
|
|
776
|
-
{ match: "\uFF07", replacement: "'", description: "fullwidth apostrophe" },
|
|
777
774
|
{
|
|
778
775
|
match: "\u2550",
|
|
779
776
|
replacement: "=",
|
|
@@ -813,16 +810,6 @@ const REPLACEMENT_RULES = [
|
|
|
813
810
|
match: "\u254B",
|
|
814
811
|
replacement: "+",
|
|
815
812
|
description: "box drawings heavy vertical and horizontal"
|
|
816
|
-
},
|
|
817
|
-
{
|
|
818
|
-
match: "\u2013",
|
|
819
|
-
replacement: "-",
|
|
820
|
-
description: "en dash"
|
|
821
|
-
},
|
|
822
|
-
{
|
|
823
|
-
match: "\u2212",
|
|
824
|
-
replacement: "-",
|
|
825
|
-
description: "minus sign"
|
|
826
813
|
}
|
|
827
814
|
];
|
|
828
815
|
const REPLACEMENT_RULE_MAP = new Map(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aslopcleaner",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "High-performance CLI to replace common LLM/AI Unicode punctuation and symbols with ASCII equivalents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/node": "^25.5.0",
|
|
54
|
-
"@vitest/coverage-v8": "^
|
|
54
|
+
"@vitest/coverage-v8": "^4.1.2",
|
|
55
55
|
"pkgroll": "^2.11.3",
|
|
56
56
|
"tsx": "^4.19.4",
|
|
57
|
-
"vitest": "^
|
|
57
|
+
"vitest": "^4.1.2"
|
|
58
58
|
}
|
|
59
59
|
}
|