Skip to content

Latest commit

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Ripple | Helpers

Coverage StatusBuild Status

Allows registering helper functions for a resource.

exportdefault{name: 'foo',body: {bar: 1},headers: {helpers: { help,constant: 5}}}functionhelp(){return'help!'}

You will be able to access the helper functions from the resource itself, on the server or client, even if you overwrite the entire resource body:

ripple('foo').help()// 'help!'ripple('foo').constant// 5ripple('foo',{bar: 2})ripple('foo').help()// 'help!'ripple('foo').constant// 5

About

Ripple | Helpers

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages