New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

minus-code

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minus-code

A tool to code string by minus unicode of char

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

Install

npm install minus-code

Usage

test.js

import MinusCode from 'minus-code';
import { fileURLToPath } from 'node:url';

const __filename = fileURLToPath(import.meta.url);
const mcode = new MinusCode();

/*
//Prototype method test

console.log(mcode.num_encode('01234565432'));
console.log(mcode.num_decode('159B724A385'));
*/

//English test
console.log(mcode.encode('Hello World!'));
console.log(mcode.decode('30921101801802110520F7211241180100063'));
console.log();

//汉字测试
console.log(mcode.encode('你好'));
console.log(mcode.decode('52502249920'));
console.log();

console.log(`Look this code at ${__filename}`);

Keywords

code

FAQs

Package last updated on 09 Dec 2022

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