{
  "name": "clivas",
  "version": "0.1.4",
  "repository": {
    "type": "git",
    "url": "git://github.com/mafintosh/clivas"
  },
  "description": "use your terminal as a canvas. features easy redrawing, colors and more",
  "keywords": [
    "canvas",
    "cli",
    "console",
    "terminal"
  ],
  "author": {
    "name": "Mathias Buus Madsen",
    "email": "mathiasbuus@gmail.com"
  },
  "readme": "# clivas\n\nTurn your terminal into a canvas.\n\nIt is available through npm:\n\n\tnpm install clivas\n\n## Usage\n\nIt is easy to use\n\n``` js\nvar clivas = require('clivas');\n\nvar frame = 0;\n\nsetInterval(function() {\n\tclivas.clear(); // clears the canvas\n\tclivas.line('hello world (#frame '+frame+')');\n\tclivas.line('{red:also} {green:colors}!');\n\tframe++;\n}, 200);\n```\n\nWhen you draw something with clivas you can use the format patten to help you\n\n``` js\nclivas.line('{red:i am red} and {blue: i am blue}');\n```\n\nIf you wanted to inverse a color you would provide the inverse tag\n\n``` js\nclivas.line('{red+inverse:i am inversed}');\n```\n\nThe format pattern can also help you add whitespace\n\n``` js\nclivas.line('[{10:===>}]'); // prints [===>      ]\n```\n\n## API\n\n* `clivas.clear()` - Clears the screen. If you called `clivas.pin()` it would only clear up until the pin.\n\n* `clivas.flush()` - Clears everything below the cursor.\n\n* `clivas.pin([lineNumber])` - Only clear to here when `clivas.clear()` is called\n\n* `clivas.line(str)` - Write a line (accepts a format string as described above)\n\n* `clivas.write(str)` - Same as `clivas.line(str)` except it does not add a newline\n\n* `clivas.cursor(enable)` - Enable or disable the terminal cursor\n\n* `clivas.alias(name, value)` - Add an alias to the format pattern i.e. `clivas.alias('link', 'red+underline')` enables you to use `{link:http://google.com}`\n\n## License\n\nMIT",
  "readmeFilename": "README.md",
  "bugs": {
    "url": "https://github.com/mafintosh/clivas/issues"
  },
  "homepage": "https://github.com/mafintosh/clivas",
  "_id": "clivas@0.1.4",
  "_shasum": "e1c1e481d1273d57f1752132b0e4410a0d88235a",
  "_from": "clivas@^0.1.4",
  "_resolved": "https://registry.npmjs.org/clivas/-/clivas-0.1.4.tgz"
}
