Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/khashayarsw/stringer

Convert your string
https://github.com/khashayarsw/stringer

javascript npm-package

Last synced: about 1 month ago
JSON representation

Convert your string

Awesome Lists containing this project

README

        

# @khashi/stringer

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

Convert your string

## Install

```
$ npm install @khashi/stringer
```

## Usage

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

stringer.isUpperCase("DEVELOPER");
//=> "true"

stringer.toLowerCase(123);
//=> Uncaught TypeError: stringer wants a string!
```
## API
Here is a list of currently available stringers.

Stringer | Description
------------ | -------------
toUpperCase(str) | convert string to uppercase letters
toLowerCase(str) | convert string to lowercase letters
isUpperCase(str) | checks if all letters are uppercase
isLowerCase(str) | checks if all letters are lowercase

## License

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