@slashmark/sm-log 1.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.
Files changed (3) hide show
  1. package/README.md +0 -0
  2. package/bin/index.js +19 -0
  3. package/package.json +10 -0
package/README.md ADDED
File without changes
package/bin/index.js ADDED
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env node
2
+
3
+ const args = process.argv.slice(2);
4
+
5
+ if (!args.length) {
6
+ console.log("Usage:");
7
+ console.log(' sm-log "raw log text"');
8
+ process.exit(1);
9
+ }
10
+
11
+ const input = args.join(" ");
12
+
13
+ const formatted = input
14
+ .replace(/\s+/g, " ")
15
+ .trim()
16
+ .split(". ")
17
+ .join(".\n");
18
+
19
+ console.log(formatted);
package/package.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@slashmark/sm-log",
3
+ "version": "1.0.0",
4
+ "description": "sm-log CLI tool",
5
+ "bin": {
6
+ "sm-log": "./bin/index.js"
7
+ },
8
+ "author": "Slash Mark IT Solutions",
9
+ "license": "MIT"
10
+ }