Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/khashayarsw/tiny

The tiniest npm module
https://github.com/khashayarsw/tiny

javascript npm-package

Last synced: 23 days ago
JSON representation

The tiniest npm module

Awesome Lists containing this project

README

        

# @khashi/tiny

[![npm](https://img.shields.io/npm/v/@khashi/tiny?color=blue&label=npm%20)](https://www.npmjs.com/package/@khashi/tiny)
[![NPM](https://img.shields.io/npm/l/@khashi/tiny?color=blue)](https://www.npmjs.com/package/@khashi/tiny)

Removes all spaces from a string.

## Install

```
$ npm install @khashi/tiny
```

## Usage

```js
const tiny = require("@khashi/tiny");

tiny("So much space!");
//=> "Somuchspace!"

tiny(1337);
//=> Uncaught TypeError: Tiny wants a string!
// at tiny (:2:41)
// at :1:1
```
## License

@khashi/tiny is released under the terms of the MIT License.