package.json 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {
  2. "name": "postcss-normalize-url",
  3. "version": "5.1.0",
  4. "description": "Normalize URLs with PostCSS",
  5. "main": "src/index.js",
  6. "types": "types/index.d.ts",
  7. "files": [
  8. "src",
  9. "LICENSE-MIT",
  10. "types"
  11. ],
  12. "keywords": [
  13. "css",
  14. "normalize",
  15. "optimise",
  16. "optimisation",
  17. "postcss",
  18. "postcss-plugin",
  19. "url"
  20. ],
  21. "license": "MIT",
  22. "dependencies": {
  23. "normalize-url": "^6.0.1",
  24. "postcss-value-parser": "^4.2.0"
  25. },
  26. "homepage": "https://github.com/cssnano/cssnano",
  27. "author": {
  28. "name": "Ben Briggs",
  29. "email": "beneb.info@gmail.com",
  30. "url": "http://beneb.info"
  31. },
  32. "repository": "cssnano/cssnano",
  33. "bugs": {
  34. "url": "https://github.com/cssnano/cssnano/issues"
  35. },
  36. "engines": {
  37. "node": "^10 || ^12 || >=14.0"
  38. },
  39. "devDependencies": {
  40. "postcss": "^8.2.15"
  41. },
  42. "peerDependencies": {
  43. "postcss": "^8.2.15"
  44. },
  45. "readme": "# [postcss][postcss]-normalize-url\n\n> [Normalize URLs](https://github.com/sindresorhus/normalize-url) with PostCSS.\n\n## Install\n\nWith [npm](https://npmjs.org/package/postcss-normalize-url) do:\n\n```\nnpm install postcss-normalize-url --save\n```\n\n## Example\n\n### Input\n\n```css\nh1 {\n background: url(\"http://site.com:80/image.jpg\")\n}\n```\n\n### Output\n\n```css\nh1 {\n background: url(http://site.com/image.jpg)\n}\n```\n\nNote that this module will also try to normalize relative URLs, and is capable\nof stripping unnecessary quotes. For more examples, see the [tests](test.js).\n\n## Usage\n\nSee the [PostCSS documentation](https://github.com/postcss/postcss#usage) for\nexamples for your environment.\n\n## API\n\n### normalize([options])\n\nPlease see the [normalize-url documentation][docs]. By default,\n`normalizeProtocol`, `stripHash` & `stripWWW` are set to `false`.\n\n## Contributors\n\nSee [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).\n\n## License\n\nMIT © [Ben Briggs](http://beneb.info)\n\n[docs]: https://github.com/sindresorhus/normalize-url#options\n[postcss]: https://github.com/postcss/postcss\n"
  46. }