@secjs/utils
Version:
Utils functions and classes for Node.js
164 lines (163 loc) • 3.77 kB
JSON
{
"name": "@secjs/utils",
"version": "2.0.1",
"description": "Utils functions and classes for Node.js",
"license": "MIT",
"author": "João Lenon <lenon@athenna.io>",
"bugs": "https://github.com/SecJS/Utils/issues",
"repository": "https://github.com/SecJS/Utils.git",
"homepage": "https://github.com/SecJS/Utils#readme",
"keywords": [
"utils",
"json",
"uuid",
"path",
"string",
"number",
"number",
"filesystem",
"pagination"
],
"scripts": {
"lint:fix": "eslint \"{src,tests}/**/*.js\" --fix",
"test": "npm run --silent lint:fix && node ./tests/index.js",
"test:debug": "cross-env DEBUG=api:* && npm run --silent test",
"test:coverage": "c8 npm run --silent test",
"gen:types": "tsc src/*.js --declaration --allowJs --emitDeclarationOnly --out src/index.js"
},
"files": [
"src/*.js",
"src/*.d.ts",
"src/**/*.js",
"src/**/*.d.ts"
],
"type": "module",
"main": "./src/index.js",
"exports": "./src/index.js",
"types": "./src/index.d.ts",
"imports": {
"#src/*": "./src/*.js",
"#tests/*": "./tests/*.js"
},
"dependencies": {
"bytes": "3.1.2",
"callsite": "1.0.0",
"chalk": "5.0.1",
"change-case": "4.1.2",
"collect.js": "4.34.3",
"debug": "4.3.4",
"http-status-codes": "2.2.0",
"kind-of": "6.0.3",
"lodash": "4.17.21",
"mime-types": "2.1.35",
"minimatch": "5.0.1",
"ms": "2.1.3",
"parent-module": "3.0.0",
"pluralize": "8.0.0",
"prepend-file": "2.0.1",
"uuid": "8.3.2",
"validator-brazil": "1.2.2",
"youch": "3.1.1",
"youch-terminal": "2.1.3"
},
"devDependencies": {
"@japa/assert": "1.3.4",
"@japa/run-failed-tests": "1.0.7",
"@japa/runner": "2.0.7",
"@japa/spec-reporter": "1.1.12",
"@otris/jsdoc-tsd": "2.0.11",
"c8": "7.11.2",
"commitizen": "^4.2.5",
"cross-env": "7.0.3",
"cz-conventional-changelog": "3.3.0",
"eslint": "8.14.0",
"eslint-config-prettier": "8.5.0",
"eslint-config-standard": "17.0.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-n": "15.2.0",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-promise": "6.0.0",
"husky": "3.0.9",
"lint-staged": "12.4.1",
"minimist": "1.2.6",
"prettier": "2.6.2",
"rimraf": "3.0.2",
"tsd-jsdoc": "2.5.0",
"typescript": "4.6.4"
},
"c8": {
"all": true,
"include": [
"src/**/*.js"
],
"reporter": [
"text-summary",
"html"
],
"report-dir": "./tests/Coverage",
"check-coverage": true
},
"husky": {
"hooks": {
"prepare-commit-msg": "lint-staged && exec < /dev/tty && git cz --hook || true"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
],
"*.json": [
"prettier --write",
"git add"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"prettier": {
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "avoid",
"endOfLine": "lf",
"semi": false,
"printWidth": 80,
"overrides": [
{
"files": "tests/**/*",
"options": {
"printWidth": 120
}
}
]
},
"eslintConfig": {
"env": {
"es2021": true,
"node": true
},
"plugins": [
"prettier"
],
"extends": [
"standard",
"eslint:recommended",
"plugin:prettier/recommended"
],
"ignorePatterns": [
"**/*.d.ts"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"camelcase": "off",
"dot-notation": "off",
"prettier/prettier": "error",
"no-useless-constructor": "off"
}
}
}