Nearsighted Paramecium Multiverse

npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

@pelevesque/swap-chars

0.0.2 • Public • Published

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'

install

npm i @pelevesque/swap-chars

Downloadsweekly downloads

0

version

0.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability