0.0.4 • Published 5 years ago

@pelevesque/swap-chars v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Build Status Coverage Status JavaScript Style Guide

swap-chars

Swaps two characters in a string.

Node Repository

https://www.npmjs.com/package/@pelevesque/swap-chars

Installation

npm install @pelevesque/swap-chars

Tests

Standard Style & Unit Tests

npm test

Unit Tests & Coverage

npm run cover

Usage

const swapChars = require('@pelevesque/swap-chars')
const string = 'bad bed led lad'
const result = swapChars(string, 'a', 'e')
// result === 'bed bad lad led'