New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pingpong-nickname

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pingpong-nickname

A npm package for an awesome ping pong nickname

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Build Status npm version

pingpong-nickname

A npm package for an awesome ping pong nickname

Getting Started

Create a new instance of PingPongNickname passing the configuration options and optional default request options:

var PingPongNickname = require('pingpong-nickname');

var pingPongNickname = new PingPongNickname({ host: 'yourhost.com', port: 3000, protocol: 'http' }, { auth: { user: 'user', pass: 'pass', sendImmediately: true } });

The client must be created with a host or an error will be thrown.

Using the client

Call pingPongNickname.nickname(callback) with the following parameters:

@param {function} callback A callback function. Will be sent the following params:
    @param {string} error An error
    @param {object} response The server response
    @param {object} body The body of the response

An example:

// Get a new nickname
pingPongNickname.nickname(function(error, response, body) {
    if (error) {
        console.log(error);
    } else {
        console.log(body);
    }
});

Testing

Unit tests

To run all unit tests within the package run:

npm test

Code Style / Lint Checks

To run jshint and jscs checks within the package run:

npm run lint

FAQs

Package last updated on 01 Sep 2015

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