<|start_filename|>package.json<|end_filename|>
{
  "name": "svg-to-svelte",
  "version": "2.2.1",
  "license": "MIT",
  "description": "Convert SVG files to Svelte components",
  "author": "<NAME> (https://github.com/metonym)",
  "main": "./dist/index.js",
  "types": "./dist/index.d.ts",
  "engines": {
    "node": ">=12"
  },
  "scripts": {
    "develop": "tsnd --respawn --transpile-only src",
    "test": "tsnd --transpile-only src/tests",
    "test:tdd": "tsnd --respawn --transpile-only src/tests",
    "prepack": "tsc"
  },
  "dependencies": {
    "svelte": "^3.32.1"
  },
  "devDependencies": {
    "@types/node": "^14.14.23",
    "ts-node-dev": "1.1.1",
    "typescript": "4.1.3"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/metonym/svg-to-svelte.git"
  },
  "homepage": "https://github.com/metonym/svg-to-svelte",
  "bugs": "https://github.com/metonym/svg-to-svelte/issues",
  "keywords": [
    "svelte",
    "svelte component",
    "svg",
    "icon",
    "library"
  ],
  "files": [
    "dist",
    "cli.js"
  ],
  "bin": {
    "svg-to-svelte": "./cli.js",
    "s2s": "./cli.js"
  }
}


<|start_filename|>cli.js<|end_filename|>
#!/usr/bin/env node

const input = process.argv.slice(2).map((flag) => {
  const [key, value] = flag.split("=");
  if (key === "--input") return value;
})[0];

require("./dist").generate(input);
