@pelevesque/swap-chars

0.0.4 • 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'

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    0
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i @pelevesque/swap-chars

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

4.33 kB

Total Files

6

Last publish

Collaborators

  • pelevesque