Skip to content
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
LICENSE
index.js
index.mjs
package.json
readme.md
test.js

readme.md

Witz

Just another glitch factory

Setup

# Fetch latest from github
npm i thewhodidthis/witz

Usage

const fs = require('fs')
const witz = require('./')

const pimp = witz()
const save = (data, file = './target.jpg') => fs.writeFile(file, data, (error) => {
    if (error) {
        throw error
    }

    console.log('Done!')
})

fs.readFile('./source.jpg', (error, data) => {
    if (error) {
        throw error
    }

    const master = Buffer(data).toString('base64')
    const sample = pimp(master)
    const result = Buffer.from(sample, 'base64')

    save(result)
})
You can’t perform that action at this time.