pvjs
v1.1.11
Published
This is an npm module design to perform common uses in the pVelocity JSAPI2 framework.
Downloads
49
Readme
pvjs
This is an npm module design to perform common uses in the pVelocity JSAPI2 framework.
Getting Started
Install the pvjs
module.
npm install --save pvjs
Use the require statement to load the module into the global namespace.
require('pvjs');
Methods
Validation
- isArray
- isBoolean
- isDatabase
- isDate
- isElement
- isFunction
- isAsyncFunction
- isInfinity
- isNaN
- isNull
- isNumber
- isObject
- isRegExp
- isString
- isUndefined
- isInteger
- isEmptyObject
- isEmptyValue
- isValidUrl
- isUrlImageExtension
- isUrlDocExtension
- isEmail
Color
- colorToRgba
- rgbaToColor
- combineColors
- useWhiteOnColor
- hexToRgb
- rgbToHex
- rgbToHsv
- rgbToHsl
- hsvToRgb
- hsvToHex
- hsvToHsl
- hslToRgb
- hslToHex
- hslToHsv
Conversion
- escapeFileName
- unescapeXml
- escapeXml
- escapeHtml
- encodeURIComponentCaseSensitive
- encodeURIComponentFull
- convertObjectToStr
- convertStrToBool
- convertStrToFloat
- convertStrToDate
- getColumnKeyByIndex
- getIndexByColumnKey
Arrays
- ensureArray
- swapArray
- arrayEquals
- hasArraySameElements
- sortArrayKeyValueAsc
- sortArrayKeyValueDesc
- matchedIndexOfArray
Utility
- round
- randomInt
- createHash
- createGuid
- deepCopy
- deepCopyJSonObj
- updateObjWithSameSchema
- left
- right
- lTrim
- rTrim
- trim
- pad
- getUrls
- getTimestamp
- replaceAll
License
Copyright (c) 2016, pVelocity Inc
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.