{
  "name": "ascli",
  "description": "A uniform foundation for unobtrusive (ASCII art in) cli apps.",
  "version": "0.3.0",
  "author": {
    "name": "Daniel Wirtz",
    "email": "dcode@dcode.io"
  },
  "repository": {
    "type": "url",
    "url": "https://github.com/dcodeIO/ascli.git"
  },
  "bugs": {
    "url": "https://github.com/dcodeIO/ascli/issues"
  },
  "keywords": [
    "ansi",
    "terminal",
    "colors",
    "ascii"
  ],
  "main": "./ascli.js",
  "dependencies": {
    "colour": "latest",
    "optjs": "latest"
  },
  "scripts": {
    "test": "node tests/test.js"
  },
  "license": "Apache-2.0",
  "readme": "![ascli](https://raw.github.com/dcodeIO/ascli/master/ascli.png)\r\n=====\r\n**Why?** Some of us are not only programmers but also part-time artist. So am I. This is good. However, to limit myself\r\na bit to a straight look of my CLI apps, I've created ascli based on the thought of not making things too fancy but\r\nstill looking good. So, basically, this package is meant to be used by me but if you like my interpretation of\r\nunobtrusiveness and ease-of-use ... You are welcome!\r\n\r\n<p align=\"center\">\r\n    <img src=\"https://raw.github.com/dcodeIO/ascli/master/example.png\" alt=\"example\" />\r\n</p>\r\n\r\nInstallation\r\n------------\r\n`npm install ascli`\r\n\r\nUsage\r\n-----\r\n```js\r\nvar ascli = require(\"ascli\").app(\"myApp\");\r\nascli.banner(ascli.appName.green.bold, \"v1.0.0 by Foo Bar <foobar@example.com>\");\r\nconsole.log(\"Hello!\");\r\n// If it worked:\r\nascli.ok(\"It worked!\");\r\n// If it didn't:\r\nascli.fail(\"Nope, sorry.\", /* exit code */ 1);\r\n```\r\n\r\n#### Using another alphabet\r\nBy default ascli uses a modified version of the **straight** ASCII alphabet. If you don't like it, you are free to\r\nreplace it:\r\n\r\n```js\r\nascli.use(\"/path/to/my/alphabet.json\");\r\n// or\r\nvar myAlphabet = { ... };\r\nascli.use(myAlphabet);\r\n```\r\n\r\nSee the `alphabet/` directory for an example.\r\n\r\n#### Using colors\r\nascli automatically looks up and translates ANSI terminal colors applied to the title string. For that it depends on\r\n[colour.js](https://github.com/dcodeIO/colour.js) which is also exposed as a property of the ascli namespace:\r\n`ascli.colour` / `ascli.colors`. Also means: You don't need another ANSI terminal colors dependency.\r\n\r\n#### Indentation\r\nascli automatically indents all console output by one space just because it looks better with the banner.\r\n\r\nParsing command line arguments\r\n------------------------------\r\n[opt.js](https://github.com/dcodeIO/opt.js) will be pre-run on the `ascli` namespace and also exposed as `ascli.optjs()`.\r\n```js\r\nascli.node   // Node executable\r\nascli.script // Executed script\r\nascli.opt    // Options as a hash\r\nascli.argv   // Remaining non-option arguments\r\n```\r\n\r\nLicense\r\n-------\r\nApache License, Version 2.0\r\n",
  "readmeFilename": "README.md",
  "_id": "ascli@0.3.0",
  "dist": {
    "shasum": "c4cf3a650e5ccc880a5fe8fd3dd9497d5aa0bc89"
  },
  "_from": "ascli@latest",
  "_resolved": "https://registry.npmjs.org/ascli/-/ascli-0.3.0.tgz"
}
