starship-butler-utils 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/README.md +34 -0
- package/dist/index.d.mts +11 -0
- package/dist/index.mjs +19 -0
- package/package.json +35 -0
package/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Starship Butler Utils
|
|
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
|
+
Utils of starship butler.
|
|
10
|
+
|
|
11
|
+
## Sponsors
|
|
12
|
+
|
|
13
|
+
<p align="center">
|
|
14
|
+
<a href="https://cdn.jsdelivr.net/gh/lumirelle/static/sponsors.svg">
|
|
15
|
+
<img src='https://cdn.jsdelivr.net/gh/lumirelle/static/sponsors.svg'/>
|
|
16
|
+
</a>
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
## License
|
|
20
|
+
|
|
21
|
+
[MIT](./LICENSE) License © [Lumirelle](https://github.com/lumirelle)
|
|
22
|
+
|
|
23
|
+
<!-- Badges -->
|
|
24
|
+
|
|
25
|
+
[npm-version-src]: https://img.shields.io/npm/v/starship-butler?style=flat&colorA=080f12&colorB=1fa669
|
|
26
|
+
[npm-version-href]: https://npmjs.com/package/starship-butler
|
|
27
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/starship-butler?style=flat&colorA=080f12&colorB=1fa669
|
|
28
|
+
[npm-downloads-href]: https://npmjs.com/package/starship-butler
|
|
29
|
+
[bundle-src]: https://img.shields.io/bundlephobia/minzip/starship-butler?style=flat&colorA=080f12&colorB=1fa669&label=minzip
|
|
30
|
+
[bundle-href]: https://bundlephobia.com/result?p=starship-butler
|
|
31
|
+
[license-src]: https://img.shields.io/github/license/lumirelle/starship-butler.svg?style=flat&colorA=080f12&colorB=1fa669
|
|
32
|
+
[license-href]: https://github.com/lumirelle/starship-butler/blob/main/LICENSE
|
|
33
|
+
[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669
|
|
34
|
+
[jsdocs-href]: https://www.jsdocs.io/package/starship-butler
|
package/dist/index.d.mts
ADDED
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { reset, bold, magenta, cyan, red, green } from 'ansis';
|
|
2
|
+
|
|
3
|
+
const highlight = {
|
|
4
|
+
green: (text) => {
|
|
5
|
+
return green(text);
|
|
6
|
+
},
|
|
7
|
+
red: (text) => {
|
|
8
|
+
return red(text);
|
|
9
|
+
},
|
|
10
|
+
info: (text) => {
|
|
11
|
+
return cyan(text);
|
|
12
|
+
},
|
|
13
|
+
important: (text) => {
|
|
14
|
+
return bold(magenta(text));
|
|
15
|
+
},
|
|
16
|
+
reset
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { highlight };
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "starship-butler-utils",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"description": "Your best starship butler.",
|
|
6
|
+
"author": "Lumirelle <shabbyacc@outlook.com>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"funding": "https://github.com/sponsors/lumirelle",
|
|
9
|
+
"homepage": "https://github.com/lumirelle/starship-butler#readme",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/lumirelle/starship-butler.git"
|
|
13
|
+
},
|
|
14
|
+
"bugs": "https://github.com/lumirelle/starship-butler/issues",
|
|
15
|
+
"keywords": [],
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"exports": {
|
|
18
|
+
".": "./dist/index.mjs"
|
|
19
|
+
},
|
|
20
|
+
"main": "./dist/index.mjs",
|
|
21
|
+
"module": "./dist/index.mjs",
|
|
22
|
+
"types": "./dist/index.d.mts",
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "unbuild",
|
|
28
|
+
"dev": "unbuild --stub",
|
|
29
|
+
"prepublishOnly": "nr build",
|
|
30
|
+
"start": "tsx src/index.ts"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"ansis": "catalog:utils/prod"
|
|
34
|
+
}
|
|
35
|
+
}
|