package.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {
  2. "name": "postcss-normalize-string",
  3. "version": "5.1.0",
  4. "description": "Normalize wrapping quotes for CSS string literals.",
  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. "postcss",
  15. "postcss-plugin"
  16. ],
  17. "license": "MIT",
  18. "homepage": "https://github.com/cssnano/cssnano",
  19. "author": {
  20. "name": "Ben Briggs",
  21. "email": "beneb.info@gmail.com",
  22. "url": "http://beneb.info"
  23. },
  24. "repository": "cssnano/cssnano",
  25. "dependencies": {
  26. "postcss-value-parser": "^4.2.0"
  27. },
  28. "bugs": {
  29. "url": "https://github.com/cssnano/cssnano/issues"
  30. },
  31. "engines": {
  32. "node": "^10 || ^12 || >=14.0"
  33. },
  34. "devDependencies": {
  35. "postcss": "^8.2.15"
  36. },
  37. "peerDependencies": {
  38. "postcss": "^8.2.15"
  39. },
  40. "readme": "# [postcss][postcss]-normalize-string\n\n> Normalize strings with PostCSS.\n\n## Install\n\nWith [npm](https://npmjs.org/package/postcss-normalize-string) do:\n\n```\nnpm install postcss-normalize-string --save\n```\n\n## Example\n\n### Input\n\n```css\np:after{ content: '\\\\'string\\\\' is intact' }\n```\n\n### Output\n\n```css\np:after{ content:\"'string' is intact\" }\n```\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\n#### options\n\n##### preferredQuote\n\nType: `string`\nDefault: `double`\n\nSets what type of quote to prefer. Possible values are `single` and `double`.\n\n```js\nvar css = 'p:after{content:\"\"}';\nconsole.log(postcss(normalize({preferredQuote: 'single'})).process(css).css);\n//=> p:after{content:''}\n```\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[postcss]: https://github.com/postcss/postcss\n"
  41. }