Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/taufik-nurrohman/to
- Owner: taufik-nurrohman
- License: mit
- Created: 2020-11-16T23:22:52.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-14T12:52:07.000Z (over 1 year ago)
- Last Synced: 2024-10-10T08:12:05.877Z (28 days ago)
- Topics: converter, helper, node, utility
- Language: JavaScript
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)