rijs.fn

1.2.6 • Public • Published

Ripple | Function

Coverage Status Build Status

Extends core to register functions. For cases when a function resource is registered as a string (e.g. from WS, localStorage), this converts it into a real function before storing.

ripple('component', function(){ })

If you coerce a string to be registered as a function, it will attempt to turn it into a real function first:

ripple({
  name: 'component'
, body: 'function(){ }' 
, headers: { 'content-type': 'application/javascript' }
})
 
typeof ripple('component') // 'function'

Readme

Keywords

none

Package Sidebar

Install

npm i rijs.fn

Weekly Downloads

10,870

Version

1.2.6

License

pemrouz.mit-license.org

Unpacked Size

19 kB

Total Files

10

Last publish

Collaborators

  • pemrouz