
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
javascript-func
Advanced tools
This package contains a Javascript utilities functions to help developers to start with a standard base to their developments.
npm install javascript-func
In this package you will find the following features:
General features to log your code in terminal and daily files, based on bunyan package. The output log format is: [yyyy-mm-dd date] LABEL: hostname/pid on server: DATA
- info(data): log with a INFO label
- warn(data): log with a WARN label
- error(data): log with a ERROR label
- debug(data): log with a DEBUG label
- fatal(data): log with a FATAL label
Encryption features that allows you to keep exposed information secure Functions:
- encrypt(data, key, output): encrypt the data with the given key, the output value indicates if the function encrypt or not
- decrypt(data, key, output): decrypt the data with the given key, the output value indicates if the function decrypt or not
- send(data, key, output): encrypt the data with the given key to be sent as api response, the output boolean value indicates if the result is showed or not
- receive(data, key, output): decrypt the data with the given key to be receive as api request, the output boolean value indicates if the result is showed or not
- encryptObject(object, key): encrypt the object with the given key
- encryptObject(object, key): decrypt the object with the given key
Fomat date or date string to the following string formats DDMMYYYY, YYYYMMDD and HHMM
- format(date, format): Convert to date string in one of the following valid formats: DDMMYYYY, YYYYMMDD or HHMM
Initial version with the following features:
FAQs
Javascript functions
We found that javascript-func demonstrated a not healthy version release cadence and project activity because the last version was released 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.