node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »

@knoword/encoder

@knoword/encoder

CircleCI

Encodes and decodes solutions to be used in games

Installation

npm install @knoword/encoder

Usage

On the server:

const {encode} = require('@knoword/encoder');
 
encode('apple'); // U=YXbGBw

On the client:

import {decode} from '@knoword/encoder';
 
decode('U=YXbGBw'); // apple