Novel-js
is an experiment im doing with rust. Trying to make a small time node/deno "clone".
If you have any code improvements, or general ideas feel free to make a pull request/issue respectively.
Current plans for std
- println(...data: Any[]) => void
- Print
...data
joined by a space, ended with\n
.
- TODO: Support deep printing JSON objects.
- Print
- print(...data: Any[]) => void
- Print
...data
joined by a space.
- TODO: Support deep printing JSON objects.
- Print
- assert(assertion, message) => void
- Check
assertion == true
, if its not, printmessage
.
- Check
novel run <file>
- Run <file> with the novel runtime.
novel clean
- Clears cache, so on next
run
, all packages are refetched
novel help
- Prints a help menu
Status | Function name | Args | Returns |
---|---|---|---|
✔ | read | filePath | Promise<String> |
✔ | write | filePath, content | undefined |
✔ | append | filePath, content | undefined |
✔ | exists | filePath | Promise |
✔ | delete | filePath | undefined |
✖ | copy | source, destinatioon | Promise |
✖ | mkdir | pathname, recursive? | Promise |
✖ | rename/move | oldName, newName | Promise |
Status | Function name | Args | Returns |
---|---|---|---|
✖ | get | url, options | Promise<Response> |
✖ | post | url, options | Promise<Response> |
✖ | put | url, options | Promise<Response> |
- Maybe a http library at some point?