Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitwrap

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitwrap

A lightweight steganographic npm library.

  • 1.0.2
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

#bitwrap.js

node

##About bitwrap.js is a lightweight steganographic library for node.js and browser. It wraps data in random bits to make your data look useless and random.

##Examples

You can use stringWrap for simple strings.

const bitwrap = require('bitwrap')

let a = bitwrap.stringWrap('Hello!')
let b = bitwrap.unWrapString(a)

console.log(a, '\n', b)

smartWrap can be used for objects.

const bitwrap = require('bitwrap')

let Obj = {
        foo: 'bar',
        bar: () => 'foo',
        hello: {
            world: true
        }
    }
let a = bitwrap.smartWrap([Obj]) // Array can have multiple objects
let b = bitwrap.unWrapString(a)

console.log(a, '\n', JSON.stringify(b))

For more specific use you can use arrayWrap to wrap single arrays of integers. Otherwise use smartWrap

const bitwrap = require('bitwrap')

let arr = [69, 420, 666, 1337]
let b = bitwrap.unWrap(a)

console.log(a, '\n', b)

Keywords

FAQs

Package last updated on 30 Mar 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc