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.3
0.8.2
0.8.1
0.7.3
0.7.2
0.7.1
0.6.2
0.6.1
0.5.2
0.5.1
0.4.1
0.3.1
0.2.10
0.2.9
0.2.8
0.2.6
0.2.5
0.2.2
0.2.1
0.1.1
0.0.1
GitLab API Nodejs library.
github.com/node-gitlab/node-gitlab
node-gitlab/node-gitlab
gitlab
/
src
/
Utils.coffee
11 lines
(9 loc)
•
280 B
text/coffeescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
class
Utils @parseProjectId: (projectId) =>
if
typeof
projectId
is
"number"
return
projectId #
Do
nothing
else
if
projectId.indexOf(
"/"
) isnt -
1
projectId = encodeURIComponent(projectId)
else
projectId = parseInt(projectId)
module
.exports = Utils