UNPKG

express-robots-txt

Version:

Express middleware to serve and generate robots.txt

131 lines (130 loc) 3 kB
{ "name": "express-robots-txt", "version": "1.0.0", "description": "Express middleware to serve and generate robots.txt", "type": "commonjs", "main": "./commonjs/index.js", "exports": { ".": { "require": "./commonjs/index.js", "default": "./esm/index.mjs" } }, "module": "./esm/index.mjs", "files": [ "esm/*", "commonjs/*" ], "scripts": { "test:esm": "NODE_OPTIONS=\"--no-warnings --experimental-modules --experimental-vm-modules\" jest -c test/esm/jest.config.mjs", "test:commonjs": "jest -c test/commonjs/jest.config.js", "test": "yarn test:esm && yarn test:commonjs", "lint": "eslint --fix esm/*.mjs test/esm/*.mjs test/commonjs/*.js", "build:cjs": "babel esm --out-dir commonjs/ --source-maps", "build": "yarn lint && yarn build:cjs && yarn test" }, "repository": { "type": "git", "url": "https://github.com/modosc/express-robots-txt" }, "keywords": [ "express", "robots", "robots.txt", "robots" ], "author": "modosc (http://github.com/modosc)", "contributors": [ "ashaffer (http://github.com/ashaffer)", "Mathieu Maes (http://github.com/webberig" ], "license": "MIT", "bugs": { "url": "https://github.com/modosc/express-robots-txt/issues" }, "homepage": "https://github.com/modosc/express-robots-txt", "dependencies": {}, "devDependencies": { "@babel/cli": "^7.14.8", "@babel/core": "^7.15.0", "@babel/eslint-parser": "^7.15.0", "@babel/preset-env": "^7.15.0", "babel-plugin-add-module-exports": "^1.0.4", "chai": "^4.1.2", "eslint": "^7.32.0", "eslint-config-airbnb-base": "^14.2.1", "eslint-plugin-babel": "^5.3.1", "eslint-plugin-import": "^2.24.1", "eslint-plugin-jest": "^24.4.0", "express": "^4.12.1", "jest": "27.0.6", "jest-config": "^27.0.6", "supertest": "^6.0.0" }, "peerDependencies": { "express": "^4.12.1" }, "babel": { "presets": [ [ "@babel/preset-env", { "targets": { "node": "current" } } ] ], "plugins": [ "add-module-exports" ] }, "eslintConfig": { "env": { "browser": false, "es6": true, "node": true }, "extends": [ "airbnb-base" ], "parser": "@babel/eslint-parser", "parserOptions": { "sourceType": "module", "allowImportExportEverywhere": false, "ecmaFeatures": { "globalReturn": false }, "requireConfigFile": false }, "plugins": [ "babel" ], "rules": { "import/extensions": [ "error", { "mjs": "always" } ], "indent": [ "error", 2 ], "linebreak-style": [ "error", "unix" ], "quotes": [ "error", "single" ], "semi": [ "error", "never" ], "strict": 0, "no-underscore-dangle": 0 } } }