{
  "name": "src2img-cli",
  "version": "2.0.1",
  "author": {
    "name": "Tomer Aberbach",
    "email": "tomeraberbach@gmail.com",
    "url": "https://tomeraberba.ch"
  },
  "description": "Converts source code to high quality images.",
  "keywords": [
    "source",
    "images",
    "screenshot",
    "converter",
    "beautiful",
    "cli"
  ],
  "homepage": "https://github.com/TomerAberbach/src2img-cli",
  "repository": "TomerAberbach/src2img-cli",
  "bugs": {
    "url": "https://github.com/TomerAberbach/src2img-cli/issues"
  },
  "license": "MIT",
  "files": [
    "src"
  ],
  "type": "module",
  "engines": {
    "node": ">= 12.17"
  },
  "exports": "./src/index.js",
  "module": "./src/index.js",
  "bin": {
    "src2img": "./src/index.js"
  },
  "prettier": "@tomer/prettier-config",
  "eslintConfig": {
    "extends": "@tomer"
  },
  "lint-staged": {
    "*.js": [
      "run-s \"lint:prettier:base -- --write {@}\" --",
      "run-s \"lint:eslint:base -- --fix {@}\" --"
    ],
    "*.{json,yml,md}": "run-s \"lint:prettier:base -- --write {@}\" --"
  },
  "commitlint": {
    "extends": "@commitlint/config-conventional"
  },
  "simple-git-hooks": {
    "pre-commit": "pnpx --no-install lint-staged",
    "commit-msg": "pnpx --no-install commitlint -e"
  },
  "dependencies": {
    "commander": "8.0.0",
    "filename2prism": "3.0.0",
    "fs-extra": "10.0.0",
    "inquirer": "8.1.1",
    "open": "8.2.1",
    "src2img": "2.0.1"
  },
  "devDependencies": {
    "@commitlint/cli": "12.1.4",
    "@commitlint/config-conventional": "12.1.4",
    "@tomer/eslint-config": "0.1.1",
    "@tomer/prettier-config": "0.1.0",
    "eslint": "7.29.0",
    "lint-staged": "11.0.0",
    "npm-run-all": "4.1.5",
    "prettier": "2.3.2",
    "simple-git-hooks": "2.5.1"
  },
  "scripts": {
    "lint:prettier:base": "prettier --loglevel silent --ignore-path .gitignore",
    "lint:prettier": "run-s \"lint:prettier:base -- --write .\"",
    "lint:eslint:base": "eslint --cache --ext js --ignore-path .gitignore",
    "lint:eslint": "run-s \"lint:eslint:base -- --fix .\"",
    "lint": "run-s lint:*"
  },
  "readme": "<h1 align=\"center\">\n  src2img-cli\n</h1>\n\n<div align=\"center\">\n  <a href=\"https://npmjs.org/package/src2img-cli\">\n    <img src=\"https://badgen.now.sh/npm/v/src2img-cli\" alt=\"version\" />\n  </a>\n  <a href=\"https://bundlephobia.com/result?p=src2img-cli\">\n    <img src=\"https://badgen.net/bundlephobia/minzip/src2img-cli\" alt=\"minzip size\" />\n  </a>\n</div>\n\n<div align=\"center\">\n  Converts source code to high quality images.\n</div>\n\n## Install\n\n```sh\n$ npm i src2img-cli\n```\n\n## Install\n\n```sh\n$ npm i src2img-cli -g\n```\n\nIf you encounter permission errors run the following instead:\n\n```sh\n$ sudo npm i src2img-cli -g --unsafe-perm=true --allow-root\n```\n\nThe permission errors are related to\n[puppeteer](https://www.npmjs.com/package/puppeteer). See this\n[issue](https://github.com/GoogleChrome/puppeteer/issues/1597).\n\n## Usage\n\nDisplay the help information:\n\n```sh\n$ src2img\n```\n\nOutput:\n\n```\nUsage: src2img [options] [command]\n\nOptions:\n  -h, --help                       display help for command\n\nCommands:\n  render [options] <filenames...>  converts source code to high quality images\n  presets                          lists saved presets\n  open                             opens the presets file\n  help [command]                   display help for command\n```\n\nDisplay the render help information:\n\n```sh\n$ src2img help render\n```\n\nOutput:\n\n```\nUsage: src2img render [options] <filenames...>\n\nconverts source code to high quality images\n\nOptions:\n  -o, --out <dir>      specifies an output directory (default: \".\")\n  -t, --type <type>    specifies an output file type (png or jpeg)\n                       (default: \"png\")\n  -n, --port <number>  specifies a port number (default: 8888)\n  -p, --preset <name>  uses a preset\n  -h, --help           display help for command\n```\n\nSimple rendering example:\n\n```sh\n$ src2img render myfile.js\n```\n\nFollow the prompts as they pop up and feel free to save a preset! You can reuse\na saved preset using the `-p` or `--preset` flag as shown above.\n\nNote that the best way to increase the resolution of the rendered image is to\nchoose a high font size in the prompts.\n\nSome rendered code:\n\n![example](example.png)\n\n## Related\n\n- [filename2prism](https://www.npmjs.com/package/filename2prism)\n- [src2img](https://www.npmjs.com/package/src2img)\n\n## Contributing\n\nStars are always welcome!\n\nFor bugs and feature requests,\n[please create an issue](https://github.com/TomerAberbach/src2img-cli/issues/new).\n\n## License\n\n[MIT](https://github.com/TomerAberbach/src2img-cli/blob/main/license) ©\n[Tomer Aberbach](https://github.com/TomerAberbach)\n"
}