dreamtime

1.43.0 • Public • Published

dreamtime

Causality violation for JavaScript. Executing programs before functions are written (think cucumber in js)

Dreamtime Functions

PROCEDURE: First Order Functions

First order functions describe a procedure completed by second order functions.

  • specify order of operations
  • it feels like they exist to debug flow control

TASK: Second Order Functions

Second order functions follow good conventions for managing fulfillment of the task they are charged with.

  • There is a single new Promise instance here and heavy reliance on async functions

UTILITY: Third Order Functions

Third order functions do the dirty work, they don't even receive arguments in an object, they get a standard comma separated deal with it set.

  • get simple arguments (ex: function(url, timeout){ /* dirty work */ })

Todo

  • if module directory changes update the package.json name field

References

https://github.com/fantasyui-com/tarnation

Example

const dreamtime = require('dreamtime');

const program = dreamtime()

  .downloadHtml('http://trackthis.link')
  .htmlQuery('head > script[url]')
  .downloadUrls()
  .extractObjects('ObjectExpression')

console.log(program)

Readme

Keywords

none

Package Sidebar

Install

Weekly Downloads

0

Version

1.43.0

License

ISC

Unpacked Size

83.3 kB

Total Files

28

Last publish

Collaborators

  • fantasyui.com