Skip to content

Instantly share code, notes, and snippets.

@cheeaun
Last active December 28, 2015 02:18
Show Gist options
  • Save cheeaun/7426601 to your computer and use it in GitHub Desktop.
Save cheeaun/7426601 to your computer and use it in GitHub Desktop.
Kopi.js API Draft

Moved to https://github.com/laktek/kopi.js/wiki/API-Draft :D


Kopi.js API Draft

var kopi = new Kopi();

kopi.parse

kopi.parse('Kopi O');
// return {water: 0.5, coffee: 0.5, condensed_milk: null, evaporated_milk: null, sugar: null, iced: false}

kopi.stringify

kopi.stringify({water: .5, coffee: .5});
// return 'Kopi O'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment