Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tv2media/inews

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tv2media/inews

Connects to an Avid iNews server over FTP

  • 1.3.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
3
Weekly downloads
 
Created
Source

node-inews

Connects to an Avid iNews server and allows operations over FTP

Examples

var Inews = require('inews');

Connect

Will not connect unless a function that requires the connection (eg: cwd, list) is called

var conn = Inews({
	'host': "inews-hostname",
	'user': "inews-username",
	'password': "inews-password"
});

Connect with backup servers

var conn = Inews({
	'hosts': ["inews-hostname-a", "inews-hostname-b", "inews-hostname-c"],
	'user': "inews-username",
	'password': "inews-password"
});

List Files In Directory/Queue

conn.list("YOUR.QUEUE.HERE", function(error, dirList) {
	if(!error) {
		dirList.forEach(function(story) {
			console.log(story.file);
		}
	}
});

Retrieve all stories in a queue

var inewsQueue = "YOUR.QUEUE.HERE";
conn.list(inewsQueue, function(error, dirList) {
	if(!error) {
		dirList.forEach(function(storyFile) {
			conn.story(inewsQueue, storyFile.file, function(error, storyDetails) {
				console.log(error, storyDetails);
			});
		}
	}
});

Retrieve NSML all stories in a queue

var inewsQueue = "YOUR.QUEUE.HERE";
conn.list(inewsQueue, function(error, dirList) {
	if(!error) {
		dirList.forEach(function(storyFile) {
			conn.storyNsml(inewsQueue, storyFile.file, function(error, storyNsml) {
				console.log(error, storyNsml);
			});
		}
	}
});

FAQs

Package last updated on 31 Oct 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc