Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/taufik-nurrohman/to

Convert to X from Y.
https://github.com/taufik-nurrohman/to

converter helper node utility

Last synced: 17 days ago
JSON representation

Convert to X from Y.

Awesome Lists containing this project

README

        

Converter Utility
=================

Convert to X from Y.

### CommonJS

~~~ js
const {toNumber} = require('@taufik-nurrohman/to');

console.log(toNumber('1'));
~~~

### ECMAScript

~~~ js
import {toNumber} from '@taufik-nurrohman/to';

console.log(toNumber('1'));
~~~

Methods
-------

### toArray(any)

### toArrayKey(value, array)

### toArrayValue(key, array)

### toBoolean(any)

### toCaseCamel(string)

### toCaseKebab(string, separator = '-')

### toCaseLower(string)

### toCasePascal(string)

### toCaseUpper(string)

### toCeil(number)

### toCount(array|string)

### toEdge(number, [min, max])

### toFix(number)

### toFloor(number)

### toHTML(string, restoreQuote = true)

### toJSON(any)

### toNumber(string, base = 10)

### toObjectCount(object)

### toObjectEntries(object)

### toObjectKey(value, object)

### toObjectKeys(object)

### toObjectValue(key, object)

### toObjectValues(object)

### toQuery(object)

### toRound(number)

### toString(any)

### toString(number, base = 10)

### toURL(string)

### toValue(any)