xtrim
1
Hi,
Has anyone manged to work with the meteor-ftps package?
I cannot get it to work 
as soo as I try to only declare it: var FTPS = require('ftps');
I get Error: Cannot find module 'ftps'
I have got to make it workā¦half of the app functionality depends on thatā¦
tnx for any assistance!
ahref
2
You donāt need to require ftps if you are using the package.
Just use FTPS as though it were requireded elsewhere in scope
xtrim
3
āFTPSā nor āftpsā is recognised in any wayā¦
do you have any example of to use it?
ahref
4
Iām unfourtunately not familiar with the package and its lack of documentation is annoying.
Iāll try some stuff though 
@xtrim The FTPS is only available on the server. Which is probably wise. Are you trying to use it on the client?
xtrim
5
Iām using it on the server
ahref
6
http://meteorpad.com/pad/Q8T5RhnE3kXhurAuP/Leaderboard
Default meteorpad with the package added. In the startup youāll see [Function]. Caused by a console.log of FTPS on startup.
This proves that it has been required correctly.
So things to check:
- Youāre using the same package as me zcurtis:ftps
- The code is in a Meteor.isServer block or in a server only folder.
If its still undefined, please make a reproduction of your app that we can look at on github or similar 
1 Like
xtrim
7
I understand my mistake now 
Thank you!
ahref
8
What was your mistake?(Mostly so other people can learn from reading our discussion
)
xtrim
9
I tried to declare/require it (as I am used to)
I did not know that when installing the package āit is just thereā.
Also I have code completion (webStorm), So it is weird that the compiler does not recognize it; so I thought āit is not workingāā¦
ahref
10
Ahh, thats what I said in my first post 
If you want to understand how this works more. Look at the source of the package you are using: https://github.com/zachariahtimothy/meteor-ftps/
Specifically the Package.js and lib.js files.
In them youāll see where the FTPS actually gets required(lib.js) and then exported back to Meteor(Package.js).
Goodluck!