-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
85 lines (85 loc) · 2.47 KB
/
Copy pathpackage.json
File metadata and controls
85 lines (85 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"name": "@photostructure/ftfy",
"version": "0.0.2",
"description": "Fixes mojibake and other Unicode glitches after the fact — a faithful TypeScript port of python-ftfy by Robyn Speer.",
"keywords": [
"ftfy",
"mojibake",
"unicode",
"encoding",
"utf-8",
"windows-1252",
"text",
"fix"
],
"private": false,
"homepage": "https://github.com/photostructure/ftfy-js#readme",
"bugs": {
"url": "https://github.com/photostructure/ftfy-js/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/photostructure/ftfy-js.git"
},
"license": "Apache-2.0",
"author": "PhotoStructure, Inc.",
"contributors": [
"Robyn Speer <rspeer@arborelia.net> (original python-ftfy author)"
],
"type": "module",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./package.json": "./package.json"
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"bin": {
"ftfy": "dist/bin.js"
},
"files": [
"dist",
"README.md",
"LICENSE",
"NOTICE",
"CHANGELOG.md"
],
"sideEffects": false,
"engines": {
"node": ">=22"
},
"scripts": {
"ncu": "npx -y -p npm-check-updates ncu -u",
"build": "tsdown",
"fmt": "prettier --write . && uvx ruff@0.14.4 format --line-length 100 scripts",
"fmt:check": "prettier --check . && uvx ruff@0.14.4 format --check --line-length 100 scripts",
"lint": "npm run fmt:check && uvx ruff@0.14.4 check --line-length 100 scripts && publint --pack=false",
"all": "npm run ncu && npm run upstream:sync && npm run gen:check && npm run fmt && npm run build && npm run lint && npm test",
"test": "vitest run",
"test:watch": "vitest",
"typecheck": "tsc --noEmit",
"gen": "uv run scripts/gen_all.py",
"gen:check": "uv run scripts/gen_all.py && git diff --exit-code -- src/generated tests/test-cases tests/face.txt",
"upstream:sync": "git submodule update --init --remote --checkout python-ftfy && npm run gen",
"prepublishOnly": "npm run build"
},
"devDependencies": {
"@arethetypeswrong/cli": "0.18.3",
"@types/node": "25.9.1",
"prettier": "3.8.3",
"prettier-plugin-organize-imports": "4.3.0",
"publint": "0.3.21",
"tsdown": "0.22.1",
"typescript": "6.0.3",
"vitest": "4.1.8"
}
}