typescript-string-operations
Advanced tools
Comparing version
@@ -1,3 +0,69 @@ | ||
import { String, $String } from "./string"; | ||
import { StringBuilder } from "./stringbuilder"; | ||
export { String, $String, StringBuilder }; | ||
export declare const emptyString = ""; | ||
export declare function isNullOrWhiteSpace(value: string | null): boolean; | ||
export declare function joinString(delimiter: string, ...args: (string | object | Array<any>)[]): string; | ||
export declare function formatString(format: string, ...args: any[]): string; | ||
export declare class String { | ||
private static readonly regexNumber; | ||
private static readonly regexObject; | ||
static empty: string; | ||
/** | ||
* @deprecated The property should not be used, and will be removed in future versions! Use `String.empty` instead. | ||
*/ | ||
static Empty: string; | ||
/** | ||
* @deprecated The method should not be used, and will be removed in future versions! Use `String.isNullOrWhiteSpace()` instead. | ||
*/ | ||
static IsNullOrWhiteSpace(value: string | null | undefined): boolean; | ||
/** | ||
* @deprecated The method should not be used, and will be removed in future versions! Use `String.join()` instead. | ||
*/ | ||
static Join(delimiter: string, ...args: (string | object | Array<any>)[]): string; | ||
/** | ||
* @deprecated The method should not be used, and will be removed in future version!s Use `String.format()` instead. | ||
*/ | ||
static Format(format: string, ...args: any[]): string; | ||
static isNullOrWhiteSpace(value: string | null): boolean; | ||
static join(delimiter: string, ...args: (string | object | Array<any>)[]): string; | ||
static format(format: string, ...args: any[]): string; | ||
private static formatString; | ||
private static parsePattern; | ||
private static decimalToHexString; | ||
private static getDisplayDateFromString; | ||
private static getSortableDateFromString; | ||
private static formatNumber; | ||
private static joinString; | ||
} | ||
export declare class StringBuilder { | ||
Values: string[]; | ||
constructor(value?: string); | ||
toString(): string; | ||
/** | ||
* @deprecated The method should not be used, and will be removed in future versions! Use `toString()` instead. | ||
*/ | ||
ToString(): string; | ||
append(value: string): void; | ||
/** | ||
* @deprecated The method should not be used, and will be removed in future versions! Use `append()` instead. | ||
*/ | ||
Append(value: string): void; | ||
appendLine(value: string): void; | ||
/** | ||
* @deprecated The method should not be used, and will be removed in future versions! Use `appendLine()` instead. | ||
*/ | ||
AppendLine(value: string): void; | ||
appendFormat(format: string, ...args: any[]): void; | ||
/** | ||
* @deprecated The method should not be used, and will be removed in future versions! Use `appendFormat()` instead. | ||
*/ | ||
AppendFormat(format: string, ...args: any[]): void; | ||
appendLineFormat(format: string, ...args: any[]): void; | ||
/** | ||
* @deprecated The method should not be used, and will be removed in future versions! Use `appendLineFormat()` instead. | ||
*/ | ||
AppendLineFormat(format: string, ...args: any[]): void; | ||
clear(): void; | ||
/** | ||
* @deprecated The method should not be used, and will be removed in future versions! Use `clear()` instead. | ||
*/ | ||
Clear(): void; | ||
} |
{ | ||
"name": "typescript-string-operations", | ||
"version": "1.5.0-beta.4", | ||
"version": "1.5.0-beta.5", | ||
"description": "Simple lightweight string operation library for Typescript, works with Angular", | ||
"main": "dist/index.min.js", | ||
"main": "dist/index.js", | ||
"types": "index.d.ts", | ||
"files": [ | ||
"dist/**/*.js", | ||
"**/*.d.ts" | ||
"dist/**/*", | ||
"index.d.ts" | ||
], | ||
"scripts": { | ||
"test": "mocha -r ts-node/register tests/**/tests.ts", | ||
"build": "tsc; uglifyjs ./dist/index.js --compress -o ./dist/index.min.js; rm ./dist/index.js", | ||
"build": "tsc; uglifyjs ./dist/index.js --compress -o ./dist/index.js", | ||
"lint": "eslint ." | ||
@@ -38,8 +39,3 @@ }, | ||
"eslint": "^8.22.0", | ||
"gulp": "^4.0.2", | ||
"gulp-rename": "^2.0.0", | ||
"gulp-typescript": "^6.0.0-alpha.1", | ||
"gulp-uglify": "^3.0.2", | ||
"mocha": "^10.0.0", | ||
"pump": "^3.0.0", | ||
"ts-node": "^10.9.1", | ||
@@ -50,3 +46,2 @@ "typescript": "^4.7.4", | ||
"directories": { | ||
"test": "tests" | ||
}, | ||
@@ -56,2 +51,2 @@ "resolutions": { | ||
} | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
11
-31.25%1
-50%148
7.25%16508
-15.27%5
-73.68%69
-57.41%1
Infinity%