string-ascii
v1.0.0
Published
an npm package that converts string to ascii or vice versa
Downloads
2
Maintainers
Readme
Installation
npm install string-asciiDescription
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
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 ]))

