pax_global_header00006660000000000000000000000064137231414040014511gustar00rootroot0000000000000052 comment=742881b4ed608da7136cf2c5d44407ca337900ea cli-boxes-2.2.1/000077500000000000000000000000001372314140400134005ustar00rootroot00000000000000cli-boxes-2.2.1/.editorconfig000066400000000000000000000002571372314140400160610ustar00rootroot00000000000000root = true [*] indent_style = tab end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true [*.yml] indent_style = space indent_size = 2 cli-boxes-2.2.1/.gitattributes000066400000000000000000000000231372314140400162660ustar00rootroot00000000000000* text=auto eol=lf cli-boxes-2.2.1/.github/000077500000000000000000000000001372314140400147405ustar00rootroot00000000000000cli-boxes-2.2.1/.github/funding.yml000066400000000000000000000001631372314140400171150ustar00rootroot00000000000000github: sindresorhus open_collective: sindresorhus custom: https://sindresorhus.com/donate tidelift: npm/cli-boxes cli-boxes-2.2.1/.github/security.md000066400000000000000000000002631372314140400171320ustar00rootroot00000000000000# Security Policy To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. cli-boxes-2.2.1/.gitignore000066400000000000000000000000271372314140400153670ustar00rootroot00000000000000node_modules yarn.lock cli-boxes-2.2.1/.npmrc000066400000000000000000000000231372314140400145130ustar00rootroot00000000000000package-lock=false cli-boxes-2.2.1/.travis.yml000066400000000000000000000001061372314140400155060ustar00rootroot00000000000000language: node_js node_js: - '14' - '12' - '10' - '8' - '6' cli-boxes-2.2.1/boxes.json000066400000000000000000000020151372314140400154110ustar00rootroot00000000000000{ "single": { "topLeft": "┌", "topRight": "┐", "bottomRight": "┘", "bottomLeft": "└", "vertical": "│", "horizontal": "─" }, "double": { "topLeft": "╔", "topRight": "╗", "bottomRight": "╝", "bottomLeft": "╚", "vertical": "║", "horizontal": "═" }, "round": { "topLeft": "╭", "topRight": "╮", "bottomRight": "╯", "bottomLeft": "╰", "vertical": "│", "horizontal": "─" }, "bold": { "topLeft": "┏", "topRight": "┓", "bottomRight": "┛", "bottomLeft": "┗", "vertical": "┃", "horizontal": "━" }, "singleDouble": { "topLeft": "╓", "topRight": "╖", "bottomRight": "╜", "bottomLeft": "╙", "vertical": "║", "horizontal": "─" }, "doubleSingle": { "topLeft": "╒", "topRight": "╕", "bottomRight": "╛", "bottomLeft": "╘", "vertical": "│", "horizontal": "═" }, "classic": { "topLeft": "+", "topRight": "+", "bottomRight": "+", "bottomLeft": "+", "vertical": "|", "horizontal": "-" } } cli-boxes-2.2.1/index.d.ts000066400000000000000000000030111372314140400152740ustar00rootroot00000000000000declare namespace cliBoxes { /** Style of the box border. */ interface BoxStyle { readonly topLeft: string; readonly topRight: string; readonly bottomLeft: string; readonly bottomRight: string; readonly horizontal: string; readonly vertical: string; } /** All box styles. */ interface Boxes { /** @example ``` ┌────┐ │ │ └────┘ ``` */ readonly single: BoxStyle; /** @example ``` ╔════╗ ║ ║ ╚════╝ ``` */ readonly double: BoxStyle; /** @example ``` ╭────╮ │ │ ╰────╯ ``` */ readonly round: BoxStyle; /** @example ``` ┏━━━━┓ ┃ ┃ ┗━━━━┛ ``` */ readonly bold: BoxStyle; /** @example ``` ╓────╖ ║ ║ ╙────╜ ``` */ readonly singleDouble: BoxStyle; /** @example ``` ╒════╕ │ │ ╘════╛ ``` */ readonly doubleSingle: BoxStyle; /** @example ``` +----+ | | +----+ ``` */ readonly classic: BoxStyle; } } /** Boxes for use in the terminal. @example ``` import cliBoxes = require('cli-boxes'); console.log(cliBoxes.single); // { // topLeft: '┌', // topRight: '┐', // bottomRight: '┘', // bottomLeft: '└', // vertical: '│', // horizontal: '─' // } ``` */ declare const cliBoxes: cliBoxes.Boxes & { // TODO: Remove this for the next major release default: typeof cliBoxes; }; export = cliBoxes; cli-boxes-2.2.1/index.js000066400000000000000000000002471372314140400150500ustar00rootroot00000000000000'use strict'; const cliBoxes = require('./boxes.json'); module.exports = cliBoxes; // TODO: Remove this for the next major release module.exports.default = cliBoxes; cli-boxes-2.2.1/index.test-d.ts000066400000000000000000000006351372314140400162620ustar00rootroot00000000000000import {expectType} from 'tsd'; import cliBoxes = require('.'); import {BoxStyle, Boxes} from '.'; expectType(cliBoxes); expectType(cliBoxes.classic); expectType(cliBoxes.double); expectType(cliBoxes.doubleSingle); expectType(cliBoxes.round); expectType(cliBoxes.bold); expectType(cliBoxes.single); expectType(cliBoxes.singleDouble); cli-boxes-2.2.1/license000066400000000000000000000021351372314140400147460ustar00rootroot00000000000000MIT License Copyright (c) Sindre Sorhus (https://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-2.2.1/package.json000066400000000000000000000012641372314140400156710ustar00rootroot00000000000000{ "name": "cli-boxes", "version": "2.2.1", "description": "Boxes for use in the terminal", "license": "MIT", "repository": "sindresorhus/cli-boxes", "funding": "https://github.com/sponsors/sindresorhus", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "https://sindresorhus.com" }, "engines": { "node": ">=6" }, "scripts": { "test": "xo && ava && tsd" }, "files": [ "index.js", "index.d.ts", "boxes.json" ], "keywords": [ "cli", "box", "boxes", "terminal", "term", "console", "ascii", "unicode", "border", "text", "json" ], "devDependencies": { "ava": "^1.4.1", "tsd": "^0.7.2", "xo": "^0.24.0" } } cli-boxes-2.2.1/readme.md000066400000000000000000000030541372314140400151610ustar00rootroot00000000000000# cli-boxes [![Build Status](https://travis-ci.com/sindresorhus/cli-boxes.svg?branch=master)](https://travis-ci.com/github/sindresorhus/cli-boxes) > Boxes for use in the terminal The list of boxes is just a [JSON file](boxes.json) and can be used anywhere. ## Install ``` $ npm install cli-boxes ``` ## Usage ```js const cliBoxes = require('cli-boxes'); console.log(cliBoxes.single); /* { topLeft: '┌', topRight: '┐', bottomRight: '┘', bottomLeft: '└', vertical: '│', horizontal: '─' } */ ``` ## API ### cliBoxes #### `single` ``` ┌────┐ │ │ └────┘ ``` #### `double` ``` ╔════╗ ║ ║ ╚════╝ ``` #### `round` ``` ╭────╮ │ │ ╰────╯ ``` #### `bold` ``` ┏━━━━┓ ┃ ┃ ┗━━━━┛ ``` #### `singleDouble` ``` ╓────╖ ║ ║ ╙────╜ ``` #### `doubleSingle` ``` ╒════╕ │ │ ╘════╛ ``` #### `classic` ``` +----+ | | +----+ ``` ## Related - [boxen](https://github.com/sindresorhus/boxen) - Create boxes in the terminal ---
Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.
cli-boxes-2.2.1/test.js000066400000000000000000000002241372314140400147130ustar00rootroot00000000000000import test from 'ava'; import cliBoxes from '.'; test('main', t => { t.is(typeof cliBoxes, 'object'); t.is(cliBoxes.single.topLeft, '┌'); });