Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
ascii-codes
Advanced tools
ASCII table reference and lookup functions
npm install ascii-codes
var ascii = require('ascii-codes');
var assert = require('assert');
assert.equal("A", ascii.symbolForDecimal(65));
assert.equal("A", ascii.symbolForHex("41"));
assert.equal("A", ascii.symbolForOctal("101"));
assert.equal(65, ascii.decimalForSymbol("A"));
assert.equal("41", ascii.hexForSymbol("A"));
assert.equal("101", ascii.octalForSymbol("A"));
/*
Note: You can write number literals in hex and octal. Use symbolForDecimal() for those.
*/
assert.equal("A", ascii.symbolForDecimal(0x41));
assert.equal("A", ascii.symbolForDecimal(0101));
ascii-codes
symbolForDecimal(Number) String
returns the symbol for a given decimal
symbolForHex(String) String
returns the symbol for a given hexidecimal string
symbolForOctal(String) String
returns the symbol for a given octal string
decimalForSymbol(String) Number
returns the decimal for a given symbol
hexForSymbol(String) String
returns the hexidecimal string for a given symbol
octalForSymbol(String) String
returns the octal string for a given symbol
symbolIndex Array[String]
contains the table of ASCII codes
Issues and pull requests are welcome.
# running tests
npm test
Follow me on Twitter for updates or just for the lolz and please check out my other repositories if I have earned it. I thank you for reading.
FAQs
ASCII table reference and lookup functions
The npm package ascii-codes receives a total of 10 weekly downloads. As such, ascii-codes popularity was classified as not popular.
We found that ascii-codes 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.