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

confi-coder

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

confi-coder

## description

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

confi-coder

description

confidential file encoder and decoder with MD5 and bitwise encription method.

usage

  • Node Module

configure CODER_KEY, default ENCODED_PATH and default DECODED_PATH within ./src/config.js

const { encode, decode } = require("confi-coder/src/coder.js");
decode();  // or decode(fromPath, toPath);
encode();  // or encode(fromPath, toPath);
  • Cli

configure CODER_KEY, default ENCODED_PATH and default DECODED_PATH within ./src/config.js

npm run decode
# or `npm run decode from=... to=...`
npm run encode
# or `npm run encode from=... to=...`

set CODER_KEY:

# Unix shell:
CODER_KEY=... npm run decode
# Win32:
set CODER_KEY=... & npm run decode

Note

  • ENCODED_PATH: the encoded file path. default should be in lib, which will be checked in github
  • DECODED_PATH: the decoded file path. default should be in dist, which will be ignored by github
  • CODER_KEY: the priority of CODER_KEY: explicit key > process.env > config.KEY

example

clone the project, and run

npm run decode

check the dist/concise.html

test

npm test

FAQs

Package last updated on 25 Mar 2019

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