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]
- Host: GitHub
- URL: https://github.com/fantasyui-com/dreamtime
- Owner: fantasyui-com
- License: gpl-3.0
- Created: 2019-06-27T10:58:27.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-05-05T18:16:40.000Z (about 1 year ago)
- Last Synced: 2025-06-09T12:58:04.296Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1.31 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
```