You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

typescript-string-operations

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-string-operations - npm Package Compare versions

Comparing version

to
1.5.0-beta.5

dist/index.js

72

index.d.ts

@@ -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;
}

19

package.json
{
"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": {

}
}
}