Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/parsajiravand/helping-js
simple utils for javascript
https://github.com/parsajiravand/helping-js
javascript
Last synced: about 1 month ago
JSON representation
simple utils for javascript
- Host: GitHub
- URL: https://github.com/parsajiravand/helping-js
- Owner: parsajiravand
- License: mit
- Created: 2022-12-07T23:09:37.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-23T04:17:41.000Z (6 months ago)
- Last Synced: 2024-12-06T14:07:58.044Z (about 2 months ago)
- Topics: javascript
- Language: JavaScript
- Homepage: https://helping-js.netlify.app/usage/#installation
- Size: 219 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
helping-js
simple utils for javascriptr
πDocument γ»
π Demos γ»
π¬ Playground
## Dependencies
- No need Dependency## Installation
```bash
npm install helping-js --save
```
```bash
yarn add helping-js
```
## Usage
1. You can import in your js file es6 (modules,vue,react,...)```javascript
import { isString } from 'helping-js/core/types'console.log(isString('test')) // true
console.log(isString(true)) // false
```
2. You can import in your js file es5 (nodejs)
```javascript
var { isString } = require('helping-js/core/types')console.log(isString('test')) // true
console.log(isString(true)) // false
```
3. You can usage from CDN (only modules)
```javascript
import { isString } from 'https://unpkg.com/browse/helping-js/core/types.js'console.log(isString('test')) // true
console.log(isString(true)) // false
```## Regex Usage
### You can access all regex patterns from the `helping-js/core/regex` module. (More Than 50 Patterns)Example usage:
```javascript
import { RX_HASH } from "helping-js/core/regex";
const regex = RX_HASH;
const str = '#test';
console.log(regex.test(str)); // Output: true
```