node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

@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