pax_global_header00006660000000000000000000000064126652503400014515gustar00rootroot0000000000000052 comment=30c6977f9c053c2e2de7bed9395512f90cd6e5ae cli-boxes-1.0.0/000077500000000000000000000000001266525034000134005ustar00rootroot00000000000000cli-boxes-1.0.0/.editorconfig000066400000000000000000000002761266525034000160620ustar00rootroot00000000000000root = true [*] indent_style = tab end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true [{package.json,*.yml}] indent_style = space indent_size = 2 cli-boxes-1.0.0/.gitattributes000066400000000000000000000000141266525034000162660ustar00rootroot00000000000000* text=auto cli-boxes-1.0.0/.gitignore000066400000000000000000000000151266525034000153640ustar00rootroot00000000000000node_modules cli-boxes-1.0.0/.travis.yml000066400000000000000000000001011266525034000155010ustar00rootroot00000000000000language: node_js node_js: - '5' - '4' - '0.12' - '0.10' cli-boxes-1.0.0/boxes.json000066400000000000000000000015751266525034000154230ustar00rootroot00000000000000{ "single": { "topLeft": "┌", "topRight": "┐", "bottomRight": "┘", "bottomLeft": "└", "vertical": "│", "horizontal": "─" }, "double": { "topLeft": "╔", "topRight": "╗", "bottomRight": "╝", "bottomLeft": "╚", "vertical": "║", "horizontal": "═" }, "round": { "topLeft": "╭", "topRight": "╮", "bottomRight": "╯", "bottomLeft": "╰", "vertical": "│", "horizontal": "─" }, "single-double": { "topLeft": "╓", "topRight": "╖", "bottomRight": "╜", "bottomLeft": "╙", "vertical": "║", "horizontal": "─" }, "double-single": { "topLeft": "╒", "topRight": "╕", "bottomRight": "╛", "bottomLeft": "╘", "vertical": "│", "horizontal": "═" }, "classic": { "topLeft": "+", "topRight": "+", "bottomRight": "+", "bottomLeft": "+", "vertical": "|", "horizontal": "-" } } cli-boxes-1.0.0/index.js000066400000000000000000000000701266525034000150420ustar00rootroot00000000000000'use strict'; module.exports = require('./boxes.json'); cli-boxes-1.0.0/license000066400000000000000000000021371266525034000147500ustar00rootroot00000000000000The MIT License (MIT) Copyright (c) Sindre Sorhus (sindresorhus.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. cli-boxes-1.0.0/package.json000066400000000000000000000011751266525034000156720ustar00rootroot00000000000000{ "name": "cli-boxes", "version": "1.0.0", "description": "Boxes for use in the terminal", "license": "MIT", "repository": "sindresorhus/cli-boxes", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "xo && ava" }, "files": [ "index.js", "boxes.json" ], "keywords": [ "cli", "box", "boxes", "terminal", "term", "console", "ascii", "unicode", "border", "text", "json" ], "devDependencies": { "ava": "*", "xo": "*" } } cli-boxes-1.0.0/readme.md000066400000000000000000000022011266525034000151520ustar00rootroot00000000000000# cli-boxes [![Build Status](https://travis-ci.org/sindresorhus/cli-boxes.svg?branch=master)](https://travis-ci.org/sindresorhus/cli-boxes) > Boxes for use in the terminal The list of boxes is just a [JSON file](boxes.json) and can be used wherever. ## Install ``` $ npm install --save cli-boxes ``` ## Usage ```js const cliBoxes = require('cli-boxes'); console.log(cliBoxes.single); /* { "topLeft": "┌", "topRight": "┐", "bottomRight": "┘", "bottomLeft": "└", "vertical": "│", "horizontal": "─" } */ ``` ## API ### cliBoxes #### `single` ``` ┌────┐ │ │ └────┘ ``` #### `double` ``` ╔════╗ ║ ║ ╚════╝ ``` #### `round` ``` ╭────╮ │ │ ╰────╯ ``` #### `single-double` ``` ╓────╖ ║ ║ ╙────╜ ``` #### `double-single` ``` ╒════╕ │ │ ╘════╛ ``` #### `classic` ``` +----+ | | +----+ ``` ## Related - [boxen](https://github.com/sindresorhus/boxen) - Create boxes in the terminal ## License MIT © [Sindre Sorhus](http://sindresorhus.com) cli-boxes-1.0.0/test.js000066400000000000000000000001701266525034000147130ustar00rootroot00000000000000import test from 'ava'; import m from './'; test(t => { t.is(typeof m, 'object'); t.is(m.single.topLeft, '┌'); });