An open API service indexing awesome lists of open source software.

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

Causality violation for JavaScript. Executing programs before functions are written (think cucumber in js). [Code Generation]
https://github.com/fantasyui-com/dreamtime

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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

```JavaScript
const dreamtime = require('dreamtime');

const program = dreamtime()

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

console.log(program)
```