
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
Many tools for your projects
You have a lot of tools for you that make your life easier and faster!
npm install dphelper
in the index (and only there):
import "dphelper"
type 'dphelper' in your console to have a look about all available tools that you can use globaly!
You can call these from everywhere without import (just one at index)
dphelper.currency( val, int = 'en-US', cur = 'USD' )
dphelper.storage.get( name )
dphelper.storage.set( name , value )
dphelper.storage.delete( name )
dphelper.storage.clearAll()
dphelper.cookie.set( name , value , time , path = '/' )
dphelper.cookie.get( name )
dphelper.cookie.delete( name )
dphelper.cookie.clearAll()
dphelper.indexedDB.create( storeName, table, name )
dphelper.indexedDB.open( storeName )
dphelper.indexedDB.store( storeName, table )
dphelper.indexedDB.insert( storeName, table, key, value )
dphelper.indexedDB.update( storeName, table, key, value )
dphelper.indexedDB.get( storeName, table, key )
window.dphelper.dbExist() -> know databases
dphelper.rnd() // generate long random number
dphelper.tmr() // generate number by timer
dphelper.epoch() // return epoch time
dphelper.parseDate( value ) // epoch to human date
dphelper.dateUTC() // generate UTC date format
dphelper.dateIso2Epoch( value ) // transform human date to epoch
dphelper.dateConvert( value , format ) // format like 23 Dec, 2021
dphelper.date2MMDDYYYY( value ) // format like 12312021
dphelper.date2Iso( value , int = 'en' ) // format in bese of internationalization
dphelper.localISOTime( value ) // format Thu, 31 May 2012 08:33:41 +0000
dphelper.pathRail() // Generate array start from subFolders
dphelper.pathQuery() // Generate array start from querystring
dphelper.pathHash() // Generate array start from hash path
dphelper.pushState(state, title, url) // Create a new spushState and avoid page reload
dphelper.anchorToOnClick( container ) // Transform all a href to onclick (use . for class or # for div )
dphelper.loadFile(element, path) // text to element
dphelper.loadJson( file ) // load json data to a variable
dphelper.loadJsonExternal( path, method='GET', type='application/json' ) // load json from remote to variable
dphelper.serializeForm( form ) // serialize a form (input array) to json
dphelper.objSerialize(value) // serialize object to json
dphelper.array.find( id, array ) // find value by ID into array
dphelper.array.delete( id, array ) // delete value by ID from array
dphelper.array.merge( arrayA , arrayB ) // merge two array
dphelper.array.unique( array ) // remove all duplicates
dphelper.obj2array( object ) // transform obj to array
... TO BE CONTINUE
FAQs
dphelper devtools, data management for developers by Dario Passariello
The npm package dphelper receives a total of 817 weekly downloads. As such, dphelper popularity was classified as not popular.
We found that dphelper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.