0.1.1 • Published 4 years ago

@torigoedesign/utils v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

README

Utility library

npm version GitHub version License: MIT

Installation

Using yarn:

yarn add @torigoedesign/utils

Using npm:

npm install @torigoedesign/utils

Documentation

docs

Examples

kebab-case to camelCase

import { kebabCaseToCamelCase } from "@torigoedesign/utils";

kebabCaseToCamelCase("set-user-name"); // setUserName

camelCase to kebab-case

import { camelCaseToKebabCase } from "@torigoedesign/utils";

camelCaseToKebabCase("setUserName"); // set-user-name

Email address validation

import { isEmail } from "@torigoedesign/utils";

isEmail("example@example.com"); // true
isEmail("example@exam@ple.com"); // false

IPv4 address validation

import { isIPv4 } from "@torigoedesign/utils";

isIPv4("255.255.255.255"); // true
isIPv4("255.255.255.256"); // false

See the docs for other functions.

License

The MIT License

0.1.0

4 years ago

0.1.1

4 years ago

0.0.9

4 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago