package.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {
  2. "name": "anser",
  3. "version": "1.4.10",
  4. "description": "A low level parser for ANSI sequences.",
  5. "keywords": [
  6. "ansi",
  7. "html"
  8. ],
  9. "author": "Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)",
  10. "main": "lib/index.js",
  11. "types": "lib/index.d.ts",
  12. "repository": {
  13. "type": "git",
  14. "url": "git://github.com/IonicaBizau/anser.git"
  15. },
  16. "bugs": {
  17. "url": "http://github.com/IonicaBizau/anser/issues"
  18. },
  19. "scripts": {
  20. "test": "mocha"
  21. },
  22. "devDependencies": {
  23. "mocha": "*",
  24. "should": "*",
  25. "jshint": "*",
  26. "jslint": "*"
  27. },
  28. "homepage": "https://github.com/IonicaBizau/anser#readme",
  29. "directories": {
  30. "example": "examples",
  31. "test": "test"
  32. },
  33. "blah": {
  34. "description": [
  35. {
  36. "h2": ":rocket: Features"
  37. },
  38. {
  39. "ul": [
  40. "Converts text containing [ANSI color escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors) into equivalent HTML elements.",
  41. "Allows converting the input into JSON output.",
  42. "HTML escaping",
  43. "Converts links into HTML elements",
  44. "Friendly APIs to use with virtual dom libraries"
  45. ]
  46. }
  47. ],
  48. "example": [
  49. "When using **TypeScript** you can do the following:",
  50. {
  51. "code": {
  52. "content": [
  53. "import * as Anser from 'anser';",
  54. "const txt = \"\\u001b[38;5;196mHello\\u001b[39m \\u001b[48;5;226mWorld\\u001b[49m\";",
  55. "console.log(Anser.ansiToHtml(txt));",
  56. "// <span style=\"color:rgb(255, 0, 0)\">Hello</span> <span style=\"background-color:rgb(255, 255, 0)\">World</span>"
  57. ],
  58. "language": "ts"
  59. }
  60. }
  61. ],
  62. "thanks": "This project is highly based on [`ansi_up`](https://github.com/drudru/ansi_up), by [@drudru](https://github.com/drudru/). Thanks! :cake:"
  63. },
  64. "license": "MIT",
  65. "dependencies": {},
  66. "files": [
  67. "bin/",
  68. "app/",
  69. "lib/",
  70. "dist/",
  71. "src/",
  72. "scripts/",
  73. "resources/",
  74. "menu/",
  75. "cli.js",
  76. "index.js",
  77. "bloggify.js",
  78. "bloggify.json",
  79. "bloggify/"
  80. ]
  81. }