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

pirate-node

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pirate-node

node workshop

latest
Source
npmnpm
Version
0.12.0
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

Learn Node Like a Pirate Workshop!

Introduction

Follow the steps below:

  • Install package: npm i pirate-node
  • Consume the package as follows:
const pirate = require('pirate-node')

Then run the file! http://lmgtfy.com/?q=run+node+file

  • NOTE please keep hold of the userId that gets returned from the callback

Callback Cove

encryption

Data should be a utf8 string.

pirate.ahoy()
pirate.encrypt(data, 'key', (err, encrypted) => {
})

decryption

pirate.decrypt(data, 'key', (err, decrypted) => {

})

sendMessage

pirate.sendMessage(message, (err, response) => {
  // read response
})

FAQs

Package last updated on 13 Feb 2020

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