-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpackage.json
More file actions
73 lines (73 loc) · 1.8 KB
/
Copy pathpackage.json
File metadata and controls
73 lines (73 loc) · 1.8 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
{
"name": "smartwrap",
"version": "4.0.0",
"description": "Textwrap for javascript/nodejs. Correctly handles wide characters (宽字符) and emojis (😃). Wraps strings with option to break on words.",
"main": "./dist/cjs/main.js",
"module": "./dist/esm/main.js",
"types": "./dist/cjs/main.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/esm/main.d.ts",
"default": "./dist/esm/main.js"
},
"require": {
"types": "./dist/cjs/main.d.ts",
"default": "./dist/cjs/main.js"
},
"default": "./dist/cjs/main.js"
},
"./package.json": "./package.json"
},
"engines": {
"node": ">=22"
},
"bin": {
"smartwrap": "./dist/cjs/terminal-adapter.js"
},
"scripts": {
"build": "npm run build:cjs && npm run build:esm && node scripts/write-package-jsons.js",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:esm": "tsc -p tsconfig.esm.json",
"pretest": "npm run build",
"test": "mocha test/test.js",
"test-display": "npm run build && mocha test/test.js --require test/display-hook.js",
"lint": "eslint src/",
"prepublishOnly": "npm run build"
},
"repository": {
"type": "git",
"url": "https://github.com/tecfu/smartwrap.git"
},
"keywords": [
"wordwrap",
"textwrap",
"wide-characters",
"emoji",
"ansi",
"terminal",
"typescript",
"esm"
],
"author": "tecfu",
"license": "MIT",
"dependencies": {
"breakword": "^2.1.0",
"strip-ansi": "^6.0.1",
"yargs": "^17.7.2"
},
"devDependencies": {
"@types/node": "^18.19.0",
"@types/strip-ansi": "^5.2.1",
"@types/yargs": "^17.0.33",
"chai": "^4.3.10",
"eslint": "^8.57.0",
"mocha": "^12.0.2",
"typescript": "^5.4.5"
},
"files": [
"dist/",
"LICENSE",
"README.md"
]
}