Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 500 Bytes

README.md

File metadata and controls

26 lines (16 loc) · 500 Bytes

KDCore

KDCore is the heart of KDFramework. It exports all of the necessary functionality for KDFramework is built on.

Example

{ KDObject } = require 'kdf-core'

user = new KDObject { id: 'user-1' }, { name: 'John Doe' }
message = new KDObject { id: 1, delegate: user }, { text: 'Hello world!' }

{ id } = message.getDelegate()

console.log id # => 'user-1'

{ text } = message.getData()
console.log text # => 'Hello world'

Installation

npm install kdf-core