JSPM

ask-ascii

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q24388F
  • License ISC

ASCII Conversions.

Package Exports

  • ask-ascii

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ask-ascii) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ask-ascii

ASCII Conversions.

  • Characters to Integers (convertToAscii)
  • Integers to Characters (convertIntegerToChar)

Installation using npm and setting up

npm i ask-ascii

Setting Up

const { convertToAscii, convertIntegerToChar } = require("ask-ascii");

Usage

Function Name ๐Ÿค– Parameters โš— Return type ๐ŸŽ
convertToAscii ๐Ÿ”กโžก๐Ÿ”ข A String An array of all the ASCII codes corresponding to the character indices
convertIntegerToChar ๐Ÿ”ขโžก๐Ÿ”ก Any Number Of Integers Returns the corresponding ASCII character in the order to arguments

Code Snippets

const { convertToAscii, convertIntegerToChar } = require("ask-ascii");

console.log(convertToAscii("HI"));
//[ 72, 73]

let checkAscii = convertToAscii("HI!");
console.log(...checkAscii); // 72 73

console.log(convertIntegerToChar(72, 73));
// HI

let checkCharCode = convertIntegerToChar(72, 73);
console.log(...checkCharCode); // HI