npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

skyped

v0.1.0

Published

Connect to Skype using Skype4Py and WebSockets

Downloads

4

Readme

skyped

Notice

skyped uses Skype4Py, which is no longer being updated and outdated. Skype4Py does not support cloud-based groupchats, so you wont receive any messages from those kind of chats. To make a P2P chat, use /createmoderatedchat in skype.

Example

var Skype = require('./index');
var skype = new Skype({start: true});

skype.on('received message', function(msg) {
  console.log('%s: %s', msg.from, msg.body);
});
skype.on('online status change', function(user) {
  console.log('%s changed his status to %s', user.username, user.onlineStatus);
});
skype.on('ready', function() {
  skype.chatMessage('', 'Hello!');
});

Skype(options)

Options:
  • start — Starts the bot after created.
  • host — The host the websocket server is bound to.
  • port — The port the websocket server (and client) is running on.

Functions

Skype.init()

Starts both server and client on given host and port (default port is 53295 and host is localhost). This is not needed when you have start in options set to true.

Skype.isConnected()

Returns true if both the server and client are running, false otherwise.

Skype.getUser(username, callback)

Returns with details about the user.

  • username — Username of the skype user (e.g. echo123)
  • callback(err, info) — If success, info contains information about user.

Skype.getChat(handle, callback)

Returns with information about the chat room.

  • handle — Conversation handle (e.g. #echo123/$000aaaa00aa00a00)
  • callback(err, info) — Same as getUser, but will return with different info.

Skype.userMessage(username, body, callback)

Sends a message to a user using the user's username.

  • username — Username of the skype user (e.g. echo123)
  • body — Message
  • callback() — Currently not called

Skype.chatMessage(handle, body, callback)

Sends a message to a user or chatroom using its conversation handle

  • handle — Conversation handle (e.g. #echo123/$000aaaa00aa00a00)
  • body — Message
  • callback() — Currently not called

Events

'received message'

Is called when a message has been received/read/said. Returns with a message object.

'user status change'

Is called when someone changes its online status. Returns with an user object.

'ready'

Is called when Skype is ready and attached. This is only called once.

Objects

Message object:

Chat object:

User object:

| Name | Description | | ---- | ----------- | | Coming | Soon |