@marklbp/helper
v0.0.1
Published
Aim to provide a way to make things simple
Downloads
4
Readme
install
npm i @marklbp/helper
usage
// load full build
var helper = require('@marklbp/helper')
helper.formatTime(new Date()) // => 2020-01-01 00:00:00
helper.validate('[email protected]', 'email') // => Return true
helper.scroll(node, scrollStartValue, scrollEndValue, duration, endCallback) // Scrolling animation
helper.requestAnimationFrame(callback) // => window.RequestAnimationFrame
// load single
var formatTime = require('@makrlbp/helper/dist/format-time.js')
var validate = require('@makrlbp/helper/dist/validate.js')
var scroll = require('@makrlbp/helper/dist/scroll.js')
var requestAnimationFrame = require('@makrlbp/helper/dist/request-animation-frame.js')