Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/khashayarsw/stringer
- Owner: khashayarsw
- License: mit
- Created: 2020-03-29T16:07:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-03-30T07:52:35.000Z (over 4 years ago)
- Last Synced: 2024-11-01T14:40:25.518Z (about 2 months ago)
- Topics: javascript, npm-package
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
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.