Skip to content

an npm package that converts string to ascii or vice versa

Notifications You must be signed in to change notification settings

ItzYuzuruYT/string-ascii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

an npm package that converts string to ascii or vice versa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published