Skip to content

envman/pirate-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published