Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including nsq-delete-topic with all npm packages installed. Try it out:

var nsqDeleteTopic = require("nsq-delete-topic")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

nsq-delete-topic v0.0.2

Delete a nsq topic and all its channels and messages

nsq-delete-topic

Delete a nsq topic and all its channels and messages.

API

deleteTopic(nsqlookupd, topic, fn)

Given a string or array of strings of nsqlookupd addresses, and a topic, delete that topic from all known instances of nsqd and call fn with the possible error object.

var deleteTopic = require('nsq-delete-topic');

deleteTopic('http://localhost:4161', 'events', function(err){
  // ...
});

Installation

$ npm install nsq-delete-topic

License

MIT

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free