UNPKG

matrix-transpose

Version:

Transposes a matrix by switching the row and column indices of a multidimensional array.

66 lines (65 loc) 1.85 kB
{ "name": "matrix-transpose", "version": "1.0.3", "description": "Transposes a matrix by switching the row and column indices of a multidimensional array.", "author": "Mark <mark@remarkablemark.org>", "main": "cjs/index.js", "scripts": { "build": "npm run build:cjs && npm run build:umd", "build:cjs": "tsc --declaration --outDir cjs", "build:umd": "rollup --config", "clean": "rm -rf cjs umd", "lint": "eslint .", "lint:fix": "npm run lint -- --fix", "lint:tsc": "tsc --noEmit", "prepare": "husky", "prepublishOnly": "npm run lint && npm test && npm run clean && npm run build", "test": "jest --coverage", "test:watch": "jest --watch" }, "repository": { "type": "git", "url": "https://github.com/remarkablemark/matrix-transpose" }, "bugs": { "url": "https://github.com/remarkablemark/matrix-transpose/issues" }, "keywords": [ "matrix-transpose", "matrix", "transpose", "array", "row", "column" ], "devDependencies": { "@commitlint/cli": "19.4.1", "@commitlint/config-conventional": "19.4.1", "@eslint/compat": "1.1.1", "@eslint/eslintrc": "3.1.0", "@eslint/js": "9.9.1", "@rollup/plugin-typescript": "11.1.6", "@size-limit/preset-small-lib": "11.1.4", "@types/jest": "29.5.12", "@typescript-eslint/eslint-plugin": "8.3.0", "@typescript-eslint/parser": "8.3.0", "eslint": "9.9.1", "eslint-plugin-prettier": "5.2.1", "eslint-plugin-simple-import-sort": "12.1.1", "globals": "15.9.0", "husky": "9.1.5", "jest": "29.7.0", "lint-staged": "15.2.9", "prettier": "3.3.3", "rollup": "2.79.1", "rollup-plugin-terser": "7.0.2", "size-limit": "11.1.4", "ts-jest": "29.2.5", "typescript": "5.5.4" }, "files": [ "cjs/", "umd/" ], "license": "MIT" }