@cobalt-ui/utils
Advanced tools
Comparing version 0.0.0 to 0.1.0
@@ -0,1 +1,2 @@ | ||
const TRAILING_SPACE_RE = /\s*$/; | ||
/** | ||
@@ -30,3 +31,3 @@ * Indent | ||
// indent | ||
return `${prefix}${ln.replace(/\s*$/, '')}`; | ||
return `${prefix}${ln.replace(TRAILING_SPACE_RE, '')}`; | ||
}) | ||
@@ -33,0 +34,0 @@ .join('\n'); |
@@ -0,1 +1,2 @@ | ||
export * from './ansi.js'; | ||
export * from './indent.js'; |
@@ -0,1 +1,2 @@ | ||
export * from './ansi.js'; | ||
export * from './indent.js'; |
{ | ||
"name": "@cobalt-ui/utils", | ||
"description": "Generic codegen utilities", | ||
"version": "0.0.0", | ||
"version": "0.1.0", | ||
"author": { | ||
@@ -14,5 +14,6 @@ "name": "Drew Powers", | ||
"scripts": { | ||
"build": "rm -rf dist && tsc", | ||
"build": "tsc", | ||
"dev": "tsc -w" | ||
} | ||
} | ||
}, | ||
"readme": "# @cobalt-ui/utils\n\nGeneric codegen utilities for use.\n" | ||
} |
@@ -10,2 +10,4 @@ export interface IndentOptions { | ||
const TRAILING_SPACE_RE = /\s*$/; | ||
/** | ||
@@ -39,3 +41,3 @@ * Indent | ||
// indent | ||
return `${prefix}${ln.replace(/\s*$/, '')}`; | ||
return `${prefix}${ln.replace(TRAILING_SPACE_RE, '')}`; | ||
}) | ||
@@ -42,0 +44,0 @@ .join('\n'); |
@@ -0,1 +1,2 @@ | ||
export * from './ansi.js'; | ||
export * from './indent.js'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8522
13
167