UNPKG

favilib

Version:

An enhanced Node.js module for generating favicons and assets required for Progressive Web Apps (PWAs). It supports the latest standards from `w3.org`, `Edge`, `Yandex`, and Windows Tile (Manifest), providing a unified interface for both CommonJS and ES m

123 lines (122 loc) 3.28 kB
{ "name": "favilib", "version": "1.0.5", "description": "An enhanced Node.js module for generating favicons and assets required for Progressive Web Apps (PWAs). It supports the latest standards from `w3.org`, `Edge`, `Yandex`, and Windows Tile (Manifest), providing a unified interface for both CommonJS and ES modules.", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.cjs" } }, "files": [ "dist/" ], "repository": { "type": "git", "url": "git+https://github.com/withpwa/favilib.git" }, "scripts": { "fmt": "prettier --write .", "fmt-check": "prettier --check .", "lint": "eslint . --ignore-path .gitignore", "fix": "npm run lint -- --fix && npm run fmt", "pretest": "npm run lint && npm run fmt-check", "test-import": "node ./test-packages/test-mjs/index.js", "test-require": "node ./test-packages/test-cjs/index.js", "test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest", "test-all": "npm test -- -u && npm run test-import && npm run test-require", "clean": "rimraf dist/", "prebuild": "npm run clean", "build": "unbuild", "prepublishOnly": "npm run build && npm run test-all" }, "keywords": [ "favicon", "ico", "generator", "node", "web-manifest", "manifest-latest", "apple-icons", "apple-startup", "Capo.js", "pwa", "manifest.webmanifest", "browserconfig.xml", "yandex-browser-manifest.json", "android", "android-chrome", "windows", "windows-tile", "yandex", "favicons-lib" ], "author": "Junlin", "contributors": [ { "name": "Hayden Bleasel", "email": "haydenbleasel@gmail.com" } ], "license": "MIT", "bugs": { "url": "https://github.com/withpwa/favilib/issues" }, "homepage": "https://github.com/withpwa/favilib#readme", "engines": { "node": ">=14.0.0" }, "dependencies": { "escape-html": "^1.0.3", "sharp": "^0.33.5", "xml2js": "^0.6.2" }, "devDependencies": { "@babel/core": "^7.19.6", "@babel/preset-env": "^7.19.4", "@babel/preset-typescript": "^7.18.6", "@types/escape-html": "^1.0.2", "@types/xml2js": "^0.4.11", "@typescript-eslint/eslint-plugin": "^6.2.0", "@typescript-eslint/parser": "^6.2.0", "cross-env": "^7.0.3", "eslint": "^8.26.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-jest": "^27.1.3", "eslint-plugin-prettier": "^5.0.0", "icojs": "^0.19.3", "jest": "^29.2.1", "jest-image-snapshot": "^6.1.0", "prettier": "^3.0.0", "rimraf": "^5.0.1", "typescript": "^5.0.4", "unbuild": "^2.0.0" }, "jest": { "testTimeout": 180000, "testMatch": [ "<rootDir>/test/**/*.test.mjs" ], "extensionsToTreatAsEsm": [ ".ts" ], "setupFilesAfterEnv": [ "<rootDir>/test/setup.mjs" ], "collectCoverage": true, "collectCoverageFrom": [ "src/**/*.ts", "src/**/*.js" ], "coverageDirectory": "<rootDir>/coverage", "coverageReporters": [ "text-summary", "html" ] } }