excol
Library to mock excel(-like) solutions in Javascript.
Why
You may (should) write your own tests before deploying your code to solution like Google sheet or Office 365.
WORK IN PROGRESS
Variables
A1_VALIDATOR_REGEXP
A1_VALIDATOR_REGEXP: RegExp = /^([A-Z]*[0-9]*,?:?)*$/
A_CHAR_CODE
A_CHAR_CODE: 65 = 65
CHAR_COUNT
CHAR_COUNT: 26 = 26
COLUMN_REGEXP
COLUMN_REGEXP: RegExp = /^[A-z]+/
DIMENSION
DIMENSION: 20 = 20
DefaultEmptyString
DefaultEmptyString: string = ""
DefaultFontLine
DefaultFontLine: string = "none"
DefaultFontSize
DefaultFontSize: number = 10
DefaultFontStyle
DefaultFontStyle: string = "normal"
DefaultFontWeight
DefaultFontWeight: string = "normal"
SPACE_REGEXP
SPACE_REGEXP: RegExp = / /g
email
email: string = "test@com.net"
format
format: stringify = JSON.stringify
multipleCoordinate
multipleCoordinate: Array<Array<number>> = [[1, 1], [5, 2]]
multipleMatrix
multipleMatrix: Array<Array<string>> = [['1,1'], ['5,2']]
multipleMixedCoordinate
multipleMixedCoordinate: Array<Array<number> | Array<Array<number>>> = [[1, 1], [1, -1], [[1, 1], [5, 2]], [-1, 6]]
multipleMixedMatrix
multipleMixedMatrix: Array<Array<string>> = [['1,1'], ['1', '1'], ['1,1', '5,2'], ['F', 'F']]
multipleRangeCoordinate
multipleRangeCoordinate: Array<Array<Array<number>>> = [[[1, 1], [5, 2]], [[1, 1], [5, 2]]]
multipleRangeMatrix
multipleRangeMatrix: Array<Array<string>> = [['1,1', '5,2'], ['1,1', '5,2']]
multipleRangeSingleColumnCoordinate
multipleRangeSingleColumnCoordinate: Array<Array<number>> = [[-1, 1], [-1, 3], [-1, 6]]
multipleRangeSingleColumnMatrix
multipleRangeSingleColumnMatrix: Array<Array<string>> = [['A', 'A'], ['C', 'C'], ['F', 'F']]
multipleSingleRowCoordinate
multipleSingleRowCoordinate: Array<Array<number>> = [[1, -1], [3, -1], [8, -1]]
multipleSingleRowMatrix
multipleSingleRowMatrix: Array<Array<string>> = [['1', '1'], ['3', '3'], ['8', '8']]
name
name: "newSpreadsheet" = "newSpreadsheet"
name1
name1: "newSpreadsheet1" = "newSpreadsheet1"
namedRange
named
Range: NamedRange = spreadSheet.addNamedRanges(namedRangeName, range)
namedRangeName
namedRangeName: "myNamedRange" = "myNamedRange"
range
range
: Range = spreadSheet.getRange('A1:B5')
rangeColumnCoordinate
rangeColumnCoordinate: Array<Array<Array<number>>> = [[[-1, 1], [-1, 3]]]
rangeColumnMatrix
rangeColumnMatrix: Array<Array<string>> = [['A', 'C']]
rangeCoordinate
rangeCoordinate: Array<Array<Array<number>>> = [[[1, 1], [5, 2]]]
rangeMatrix
rangeMatrix: Array<Array<string>> = [['1,1', '5,2']]
rangeRowCoordinate
rangeRowCoordinate: Array<Array<Array<number>>> = [[[1, -1], [5, -1]]]
rangeRowMatrix
rangeRowMatrix: Array<Array<string>> = [['1', '5']]
singleColumnCoordinate
singleColumnCoordinate: Array<Array<number>> = [[-1, 1]]
singleColumnMatrix
singleColumnMatrix: Array<Array<string>> = [['A', 'A']]
singleCoordinate
singleCoordinate: Array<Array<number>> = [[1, 1]]
singleMatrix
singleMatrix: Array<Array<string>> = [['1,1']]
singleRowCoordinate
singleRowCoordinate: Array<Array<number>> = [[1, -1]]
singleRowMatrix
singleRowMatrix: Array<Array<string>> = [['1', '1']]
spreadSheet
spread
Sheet: Spreadsheet = new Spreadsheet({name:'sheet1', numRows: 5, numColumns: 5})
Verify 2 dimensional array values.