Skip to content

knutkirkhorn/remove-commas

Repository files navigation

remove-commas

Remove all commas in a string

When you need to remove those pesky commas from a string.

CLI

If no input is provided, the input will be read from the clipboard.

Installation

npm install --global remove-commas

Usage

$ remove-commas --help

  Usage
    $ remove-commas
    $ remove-commas <input>

  Examples
    $ remove-commas 1,333,337

API

Installation

npm install remove-commas

Usage

import removeCommas from 'remove-commas';

console.log(removeCommas('1,333,337'));
// => 1333337