10000 GitHub - suregi/string-wrapper
[go: up one dir, main page]

Skip to content

suregi/string-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

what is this?

Returns string wrapped in specified wrapper string

installation

npm i string-wrapper

usage

wrap(<string_to_wrap>, <wrapper_string>)

import { wrap, wrapP, wrapC, wrapA, wrapS, wrapQ, wrapD } from string-wrapper;

wrap('hello', '#'); // #hello#
wrap(' world ', '***'); // *** world ***
wrap('parenthesis', '()'); // (parenthesis)
wrap('square', '[]'); // [square]
wrap('curly', '{}'); // {curly}
wrap('angle', '<>'); // <angle>

wrapP('paren'); // (paren)
wrapC('curly'); // {curly}
wrapA('angle'); // <angle>
wrapS('square'); // [square]
wrapQ('quote'); // 'quote'
wrapD('double quote'); // "double quote"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0