-
Notifications
You must be signed in to change notification settings - Fork 28
/
platform.cljs
57 lines (44 loc) · 895 Bytes
/
platform.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
(ns cli-matic.platform
"
## Platform-specific functions for Node.
At the moment it's all empty.
BTW, in this NS, we avoid using Spec / Orchestra.
")
(defn read-env
"Reads an environment variable.
If undefined, returns nil."
[var]
nil)
(defn exit-script
"Terminates execution with a return value."
[retval]
nil)
(defn add-shutdown-hook
"Add a shutdown hook.
Does not work (?) on CLJS.
"
[fnToCallOnShutdown]
nil)
;
; Conversions
;
(defn parseInt
"Converts a string to an integer. "
[s]
nil)
(defn parseFloat
"Converts a string to a float."
[s]
nil)
(defn asDate
"Converts a string in format yyyy-mm-dd to a
Date object; if conversion
fails, returns nil."
[s]
nil)
(defn parseEdn
"
See https://stackoverflow.com/questions/44661385/how-do-i-read-an-edn-file-from-clojurescript-running-on-nodejs
"
[edn-in]
nil)