
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.
binarytojson
Advanced tools
Types of format
export const formats = {
string: 'string',
stringNumber: 'stringNumber',
number: 'number',
float: 'float',
bitFlag: 'bitFlag',
array: 'array',
spare: 'spare',
flag: 'flag',
packed: 'packed',
packedNumber: 'packedNumber',
date: 'date',
};
Description of each format
string: The hex data is directly converted into EBCDIC (string). If the hex data matches the pattern /\0.*$/g then an empty string ("") is populated
stringNumber: This format assumes that the hex data is a string which represents a number. It first converts the hex data to EBCDIC (string) and then uses the parseFloat function to convert the string into a float.
number: Directly converts the hex into decimal
float: Directly converts the hex into decimal and then divides by 100
bitFlag: This format is for a single byte of data. The single byte is converted into 8 bits, and then depending on the value of the bit, if its 1, the data is set to true and if its 0, the data is set to false.
array: This format is useful for array type of data. The normal layout fields work a bit differently in format array
spare: Should only be used when you want to ignore the data. No location field needed in this format because the data isnt being inserted anyways
flag: If the hex data is e8 (Y) or a8 (y), then the data is set to true else false
packed: Only the last character is removed the from hex data. Reset everything is kept the same. Even the data itself stays in hex format
packedNumber: The last character is removed from the hex data. Then a decimal point in inserted at second last position. After this, the parseFloat method is ran.
date: This format is similar to packed, where in it removes the last character from the hex data. The remaining data is the parsed into the mainframe date format, ran throught Luxon's DateTime.local() function and only the date is returned using toISODate() function
binary: Not implemented yet
FAQs
**Types of format**
We found that binarytojson 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.