UNPKG
closeheat
Version:
latest (2.0.0)
2.0.0
0.19.5
0.19.4
0.19.3
0.19.2
0.19.1
0.19.0
0.18.0
0.17.0
0.16.0
0.15.0
0.14.0
0.13.14
0.13.13
0.13.12
0.13.11
0.13.10
0.13.9
0.13.8
0.13.7
0.13.6
0.13.5
0.13.4
0.13.3
0.13.2
0.13.1
0.13.0
0.12.7
0.12.6
0.12.5
0.12.4
0.12.3
0.12.2
0.12.1
0.12.0
0.11.0
0.10.0
0.9.2
0.9.1
0.9.0
0.8.2
0.8.1
0.8.0
0.7.2
0.7.1
0.7.0
0.6.3
0.6.2
0.6.1
0.6.0
0.5.0
0.4.0
0.3.2
0.3.1
0.3.0
0.2.0
0.1.1
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1
Static Website Hosting with CMS without touching your code.
github.com/closeheat/cli
closeheat/cli
closeheat
/
src
/
user.coffee
11 lines
(9 loc)
•
248 B
text/coffeescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
Urls
=
require
'./urls'
Authorized
=
require
'./authorized'
Promise
=
require
'bluebird'
module
.
exports
=
class
User
@get
: ->
new
Promise
(resolve, reject) ->
Authorized
.
get
(
Urls
.
currentUser
()).
then
(resp) ->
resolve
(resp.
user
)