frame-of-mind
Add A Frame Around Strings.
Last updated 6 years ago by zvr .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install frame-of-mind 
SYNC missed versions from official npm registry.

frame-of-mind

npm version

frame-of-mind adds a frame around strings.

yarn add -E frame-of-mind

Table Of Contents

API

The package is available by importing its default function:

import frameOfMind from 'frame-of-mind'

frameOfMind(
  string: string,
  options?: Config,
): string

This function will add a frame around strings with single or multiple lines.

_frameOfMind.Config: Options for the program.

Name Type Description Default
padding number The left and right padding. 1
import frameOfMind from 'frame-of-mind'

const res = frameOfMind(
  `There are thousands upon thousands of students
who have practised meditation and obtained its fruits.
Do not doubt its possibilities because of the simplicity of the method.
If you can not find the truth right where you are,
where else do you expect to find it?`
)
┌─────────────────────────────────────────────────────────────────────────┐
│ There are thousands upon thousands of students                          │
│ who have practised meditation and obtained its fruits.                  │
│ Do not doubt its possibilities because of the simplicity of the method. │
│ If you can not find the truth right where you are,                      │
│ where else do you expect to find it?                                    │
└─────────────────────────────────────────────────────────────────────────┘

Copyright

Art Deco © Art Deco 2019 Tech Nation Visa Tech Nation Visa Sucks

Current Tags

  • 1.2.3                                ...           latest (6 years ago)

6 Versions

  • 1.2.3                                ...           6 years ago
  • 1.2.2                                ...           6 years ago
  • 1.2.1                                ...           6 years ago
  • 1.2.0                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 1
This Week 1
This Month 7
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (5)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |