JSPM

string-surround

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q19343F
  • License MIT

Surround a string with another string

Package Exports

  • string-surround

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (string-surround) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

string-surround

NPM version Build Status Coverage Status

Code Climate Dependencies DevDependencies

Surround a string with another string

Install

npm install --save string-surround

Usage

import stringSurround from 'string-surround'

stringSurround('hello', '123')
// => '123hello123'

stringSurround('', 'ABC')
// => 'ABCABC'

API

stringSurround(string, [surroundingString])

Returns string surrounded with surroundingString.

string

type: string

The string to surround.

surroundingString

type: string

default: ''

The string to surround around string.

LICENSE

MIT © Dustin Specker