@towles/tool 0.0.0
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/LICENSE.md +21 -0
- package/README.md +38 -0
- package/dist/index.d.mts +5 -0
- package/dist/index.mjs +15 -0
- package/package.json +78 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-PRESENT Chris Towles<https://github.com/ChrisTowles>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Towles Tool
|
|
2
|
+
|
|
3
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
4
|
+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
5
|
+
[![bundle][bundle-src]][bundle-href]
|
|
6
|
+
[![JSDocs][jsdocs-src]][jsdocs-href]
|
|
7
|
+
[![License][license-src]][license-href]
|
|
8
|
+
|
|
9
|
+
One off quality of life scripts that I use on a daily basis.
|
|
10
|
+
|
|
11
|
+
## Tools to add
|
|
12
|
+
- [ ] Today - creates and opens a markdown file, named the current week of the year, for you to keep your daily notes and use a scratch pad for notes.
|
|
13
|
+
-
|
|
14
|
+
|
|
15
|
+
## packages to consider
|
|
16
|
+
- [ansis](https://github.com/webdiscus/ansis/) text colors
|
|
17
|
+
-
|
|
18
|
+
|
|
19
|
+
## History
|
|
20
|
+
|
|
21
|
+
I'm using a lot of inspiration from [Anthony Fu](https://github.com/antfu) for this projects codebase.
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
|
|
25
|
+
[MIT](./LICENSE) License © [Chris Towles](https://github.com/ChrisTowles)
|
|
26
|
+
|
|
27
|
+
<!-- Badges -->
|
|
28
|
+
|
|
29
|
+
[npm-version-src]: https://img.shields.io/npm/v/pkg-placeholder?style=flat&colorA=080f12&colorB=1fa669
|
|
30
|
+
[npm-version-href]: https://npmjs.com/package/pkg-placeholder
|
|
31
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/pkg-placeholder?style=flat&colorA=080f12&colorB=1fa669
|
|
32
|
+
[npm-downloads-href]: https://npmjs.com/package/pkg-placeholder
|
|
33
|
+
[bundle-src]: https://img.shields.io/bundlephobia/minzip/pkg-placeholder?style=flat&colorA=080f12&colorB=1fa669&label=minzip
|
|
34
|
+
[bundle-href]: https://bundlephobia.com/result?p=pkg-placeholder
|
|
35
|
+
[license-src]: https://img.shields.io/github/license/antfu/pkg-placeholder.svg?style=flat&colorA=080f12&colorB=1fa669
|
|
36
|
+
[license-href]: https://github.com/ChrisTowles/towles-tool/blob/main/LICENSE.md
|
|
37
|
+
[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669
|
|
38
|
+
[jsdocs-href]: https://www.jsdocs.io/package/pkg-placeholder
|
package/dist/index.d.mts
ADDED
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import process from 'node:process';
|
|
3
|
+
import { Command } from 'commander';
|
|
4
|
+
|
|
5
|
+
const program = new Command();
|
|
6
|
+
program.name("towles-tool").description("One off quality of life scripts that I use on a daily basis").version("0.0.0");
|
|
7
|
+
program.command("hello").description("Say hello to the world").option("-n, --name <name>", "name to greet", "World").action((options) => {
|
|
8
|
+
process.stdout.write(`Hello, ${options.name}!
|
|
9
|
+
`);
|
|
10
|
+
});
|
|
11
|
+
program.parse();
|
|
12
|
+
const one = 1;
|
|
13
|
+
const two = 2;
|
|
14
|
+
|
|
15
|
+
export { one, two };
|
package/package.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@towles/tool",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"packageManager": "pnpm@10.6.2",
|
|
6
|
+
"description": "One off quality of life scripts that I use on a daily basis.",
|
|
7
|
+
"author": "Chris Towles <Chris.Towles.Dev@gmail.com>",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"funding": {
|
|
10
|
+
"url": "https://github.com/sponsors/ChrisTowles"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/ChrisTowles/towles-tool#readme",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/ChrisTowles/towles-tool.git"
|
|
16
|
+
},
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/ChrisTowles/towles-tool/issues"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [],
|
|
21
|
+
"sideEffects": false,
|
|
22
|
+
"exports": {
|
|
23
|
+
".": "./dist/index.mjs",
|
|
24
|
+
"./package.json": "./package.json"
|
|
25
|
+
},
|
|
26
|
+
"main": "./dist/index.mjs",
|
|
27
|
+
"module": "./dist/index.mjs",
|
|
28
|
+
"types": "./dist/index.d.mts",
|
|
29
|
+
"bin": {
|
|
30
|
+
"towles-tool": "./dist/index.mjs",
|
|
31
|
+
"tt": "./dist/index.mjs"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist"
|
|
35
|
+
],
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "unbuild",
|
|
38
|
+
"dev": "unbuild --stub",
|
|
39
|
+
"lint": "eslint",
|
|
40
|
+
"prepublishOnly": "nr build",
|
|
41
|
+
"release": "bumpp && pnpm publish",
|
|
42
|
+
"start": "tsx src/index.ts",
|
|
43
|
+
"test": "vitest --run",
|
|
44
|
+
"test:watch": "vitest",
|
|
45
|
+
"typecheck": "tsc --noEmit",
|
|
46
|
+
"prepare": "simple-git-hooks"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"commander": "catalog:cli"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@antfu/eslint-config": "catalog:cli",
|
|
53
|
+
"@antfu/ni": "catalog:cli",
|
|
54
|
+
"@antfu/utils": "catalog:inlined",
|
|
55
|
+
"@types/node": "catalog:types",
|
|
56
|
+
"bumpp": "catalog:cli",
|
|
57
|
+
"eslint": "catalog:cli",
|
|
58
|
+
"lint-staged": "catalog:cli",
|
|
59
|
+
"simple-git-hooks": "catalog:cli",
|
|
60
|
+
"tinyexec": "catalog:utils",
|
|
61
|
+
"tsx": "catalog:cli",
|
|
62
|
+
"typescript": "catalog:cli",
|
|
63
|
+
"unbuild": "catalog:cli",
|
|
64
|
+
"vite": "catalog:cli",
|
|
65
|
+
"vitest": "catalog:testing",
|
|
66
|
+
"vitest-package-exports": "catalog:testing",
|
|
67
|
+
"yaml": "catalog:testing"
|
|
68
|
+
},
|
|
69
|
+
"simple-git-hooks": {
|
|
70
|
+
"pre-commit": "pnpm i --frozen-lockfile --ignore-scripts --offline && npx lint-staged"
|
|
71
|
+
},
|
|
72
|
+
"lint-staged": {
|
|
73
|
+
"*": "eslint --fix"
|
|
74
|
+
},
|
|
75
|
+
"directories": {
|
|
76
|
+
"test": "test"
|
|
77
|
+
}
|
|
78
|
+
}
|