@grudge/domain

Grudge domain models

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@grudge/domain
Minified + gzip package size for @grudge/domain in KB

Readme

@grudge/domain

Grudge domain models

Usage

import { User } from '@grudge/domain';

// see the default property values
console.log(User.defaults);

// create an instance
const user = new User({ name: 'hello' });
const user2 = user.clone();
const user3 = User.create({ name: 'bobby' });

// see current properties
console.log(user.properties);
console.log(user.name);

// properties are frozen
user.name = 'jimmy'; // Error!

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.