wrap-string

Wrap a string

Usage no npm install needed!

<script type="module">
  import wrapString from 'https://cdn.skypack.dev/wrap-string';
</script>

README

Wrap String

Wrap a string with other strings.

Install

$ npm install --save wrap-string

Usage

var wrapString = require("wrap-string");

wrapString({
  string: "Hello world",
  prepend: "*",
  append: "*"
})
//=> *Hello world*

Test

$ npm test