This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 1,000,000+ packages pre-installed, including
pirate-speak with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
A Node module for translating from english to pirate, built for teaching Node.
$ npm install --save pirate-speak
var pirateSpeak = require('pirate-speak'); var english = 'Cash rules everything around me C.R.E.A.M. get the money'; var pirate = pirateSpeak.translate(english); // -> Coin rules everything around me C.R.E.A.M. get thar doubloons
var pirateSpeak = require('pirate-speak'); var english = 'Mama always said life was like a box of chocolates. You never know what you\'re gonna get.'; var pirate = pirateSpeak.translate(english); // -> Mama always said life be like a barrel o' chocolates. Ye nary know what you're gonna get.
As he came into thar window It be thar sound o' a crescendo He came into her apartment He port thar bloodstains on thar carpet She ran underneath thar table He could see she be unable So she ran into thar bedroom She be struck down, it be her doom Annie, be ye ok? So, Annie be ye ok Be ye ok, Annie Annie, be ye ok? So, Annie be ye ok Be ye ok, Annie --- Captain Jackson
If me be yer boyfriend, I'd nary let ye sail me can take ye places ye ain't nary been afore Baby, take a chance or you'll nary ever know me got doubloons in me hands that I'd verily like t' blow Swag, swag, swag, on ye Chillin' by thar fire while our jolly crew eatin' fondue me don't know about me but me know about ye So cry ahoy t' falsetto in three, two, swag --- First Mate Bieber
Part of the teaching exercise involved building a backend pirate API and then interacting with it from a frontend. A live version of the heroku app is available here.
You can check out the full license here
This project is licensed under the terms of the MIT license.