@initx-plugin/utils 0.0.3 → 0.0.5

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.
@@ -0,0 +1,8 @@
1
+ declare const log: {
2
+ success: (msg: string) => void;
3
+ info: (msg: string) => void;
4
+ warn: (msg: string) => void;
5
+ error: (msg: string) => void;
6
+ };
7
+
8
+ export { log };
@@ -0,0 +1,8 @@
1
+ declare const log: {
2
+ success: (msg: string) => void;
3
+ info: (msg: string) => void;
4
+ warn: (msg: string) => void;
5
+ error: (msg: string) => void;
6
+ };
7
+
8
+ export { log };
package/dist/index.mjs ADDED
@@ -0,0 +1,10 @@
1
+ import c from 'picocolors';
2
+
3
+ const log = {
4
+ success: (msg) => console.log(`${c.bgGreen(c.black(" SUCCESS "))} ${msg}`),
5
+ info: (msg) => console.log(`${c.bgBlue(c.white(" INFO "))} ${msg}`),
6
+ warn: (msg) => console.log(`${c.bgYellow(c.black(" WARN "))} ${msg}`),
7
+ error: (msg) => console.log(`${c.bgRed(c.white(" ERROR "))} ${msg}`)
8
+ };
9
+
10
+ export { log };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@initx-plugin/utils",
3
3
  "type": "module",
4
- "version": "0.0.3",
4
+ "version": "0.0.5",
5
5
  "description": "More convenient initialization tool",
6
6
  "author": "imba97",
7
7
  "license": "MIT",