🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

xhidebinder

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xhidebinder

A data code by both 0x00 and 0x20

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

这是一种神奇的编码

This is a funny code

XhideBinder Code

将数据编码成由 0x00 和 0x20 两个字符串组成的字符串/Buffer/blob
Make data to string/buf/array by both 0x00 and 0x20
本库采用LiveScript编写(支持es5)
Module write by LiveScript
支持浏览器&Nodejs
Supports browsers and Nodejs

Method 方法

编码并写入文件 Encode & write to file

const { xb } = require( "XhideBinder" ),
    { writeFileSync } = require( "fs" )
writeFileSync( "test.txt", xb.encode( "hello,world" ) )

解码文件 Decode from file

const { xb } = require( "XhideBinder" ),
    { readFileSync } = require( "fs" )
console.log(
    xb.decode( readFileSync( "test.txt" ) )
)

编码成数组 Encode to array

const { xb } = require( "XhideBinder" ),
    { writeFileSync } = require( "fs" )
console.log( xb.encode( "hello,world", true ) )

TheEnd 完结散花

Keywords

code

FAQs

Package last updated on 24 Jul 2024

Did you know?

Socket

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.

Install

Related posts