preserve-qs
Version:
Preserve querystrings during redirect and creating new URLs for Node.js and browser environments (supports Lad, Koa, Express, and Connect)
125 lines (124 loc) • 2.9 kB
JSON
{
"name": "preserve-qs",
"description": "Preserve querystrings during redirect and creating new URLs for Node.js and browser environments (supports Lad, Koa, Express, and Connect)",
"version": "0.0.5",
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",
"bugs": {
"url": "https://github.com/niftylettuce/preserve-qs/issues",
"email": "niftylettuce@gmail.com"
},
"contributors": [
"Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)"
],
"dependencies": {
"url-parse": "^1.4.1"
},
"ava": {
"failFast": true,
"verbose": true
},
"devDependencies": {
"ava": "^0.25.0",
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.7.0",
"codecov": "^3.0.2",
"cross-env": "^5.2.0",
"eslint": "^4.19.1",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-prettier": "^2.6.0",
"husky": "^0.14.3",
"lint-staged": "^7.2.0",
"nyc": "^12.0.2",
"prettier": "^1.13.5",
"remark-cli": "^5.0.0",
"remark-preset-github": "^0.0.8",
"xo": "latest"
},
"engines": {
"node": ">=6.4"
},
"homepage": "https://github.com/niftylettuce/preserve-qs",
"keywords": [
"preserve",
"querystring",
"redirect",
"query",
"qs",
"string",
"url",
"params",
"route",
"path",
"original",
"request",
"lad",
"koa",
"express",
"connect",
"pathname",
"name"
],
"license": "MIT",
"lint-staged": {
"*.{js,jsx,mjs,ts,tsx,css,less,scss,json,graphql}": [
"prettier --write --single-quote --trailing-comma none",
"git add"
],
"*.md": [
"remark . -qfo",
"git add"
]
},
"main": "lib/index.js",
"files": [
"lib"
],
"remarkConfig": {
"plugins": [
"preset-github"
]
},
"repository": {
"type": "git",
"url": "https://github.com/niftylettuce/preserve-qs"
},
"xo": {
"extends": "prettier",
"plugins": [
"prettier"
],
"parserOptions": {
"sourceType": "script"
},
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"bracketSpacing": true,
"trailingComma": "none"
}
],
"max-len": [
"error",
{
"code": 80,
"ignoreUrls": true
}
],
"capitalized-comments": "off",
"camelcase": "off",
"no-warning-comments": "off"
},
"space": true
},
"scripts": {
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"lint": "xo && remark . -qfo",
"precommit": "lint-staged && npm test",
"test": "npm run build && npm run lint && npm run test-coverage",
"test-coverage": "cross-env NODE_ENV=test nyc ava",
"build": "node_modules/.bin/babel src --out-dir lib",
"watch": "node_modules/.bin/babel src --watch --out-dir lib"
}
}