string-ascii
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Installation

npm install string-ascii

Description

string-ascii is a useless (or maybe useful considering your needs) npm package to convert strings to ascii and vice versa
Honestly tis package is created to only serve one purpose and that is to make my code more complex and make people smack their head onto the wall for hours if they try understanding it

NPM

Usage Examples


string to ascii

const ascii = require("string-ascii")

let string = "yelo world"
string = ascii.toAscii(string)
console.log(string) // returns an array
// output: [ 121, 101, 108, 111, 32, 119, 111, 114, 108, 100 ]
// another example 
const { toAscii } = require("string-ascii")
console.log(toAscii("yelo world"))
// one more perhaps
console.log(require("string-ascii").toAscii("yelo world"))

ascii to string

const ascii = require("string-ascii")

let arr = [ 121, 101, 108, 111, 32, 119, 111, 114, 108, 100 ]
let string = ascii.toString(arr)
console.log(string) // returns a string
// output: yelo world
// like it
const { toString } = require("string-ascii")
console.log(toString([ 121, 101, 108, 111, 32, 119, 111, 114, 108, 100 ]))
// best one for sure, for sure
console.log(require("string-ascii").toString([ 121, 101, 108, 111, 32, 119, 111, 114, 108, 100 ]))

Lastly

for some reason i remembered tis pic so gonne leave it here pizza

Package Sidebar

Install

npm i string-ascii

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

4.86 kB

Total Files

12

Last publish

Collaborators

  • itzyuzuru