New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

amx-ftp

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amx-ftp

Send and retrieve files over FTP from AMX Netlinx processor

latest
Source
npmnpm
Version
2.0.16
Version published
Weekly downloads
2
-50%
Maintainers
1
Weekly downloads
 
Created
Source

amx-ftp

Send and retrieve files over FTP from an AMX Netlinx processor

Build status codecov

Installation

$ npm install amx-ftp --save

Requirements

As of version 2.0, it is recommended to use node version 8 or higher due to the use of async/await.

Features

  • Get all txt files from an AMX processor
  • Send files to an AMX processor

Example Usage Node.js

Get all the files from the processor

const amxFtp = require('amx-ftp')

amxFtp.getFiles({ host: '192.168.20.20' })
.then(() => {
  console.log('files retrieved!')
})
.catch((err) => {
  console.log('oh no! ', err)
})

Send a file to a processor

const amxFtp = require('amx-ftp')

amxFtp.sendFile({ host: '192.168.20.20', fileName: 'test.txt'})
.then(() => {
  console.log('file sent!')
})
.catch((err) => {
  console.log('oh no! ', err)
})

Defaults

Both getFiles and sendFile have default parameters than can be overridden

{
  host: '127.0.0.1',
  port: 21,
  user: 'administrator',
  password: 'password',
  path: 'ftpFiles'
}

ToDo

  • Add methods for just retrieving a list of files.
  • Add method to pull individual file
  • Add CLI support

Devices Tested

So far this has only been test with NX processors but should work with any Netlinx Processor

Keywords

AMX

FAQs

Package last updated on 20 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts