helping-js
v1.0.2
Published
simple utils for javascript
Downloads
12
Maintainers
Readme
Dependencies
- No need Dependency
Installation
npm install helping-js --save
yarn add helping-js
Usage
- You can import in your js file es6 (modules,vue,react,...)
import { isString } from 'helping-js/core/types'
console.log(isString('test')) // true
console.log(isString(true)) // false
- You can import in your js file es5 (nodejs)
var { isString } = require('helping-js/core/types')
console.log(isString('test')) // true
console.log(isString(true)) // false
- You can usage from CDN (only modules)
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:
import { RX_HASH } from "helping-js/core/regex";
const regex = RX_HASH;
const str = '#test';
console.log(regex.test(str)); // Output: true