piggytalk

1.0.5 • Public • Published

PiggyTalk

npm version npm downloads

NPM Package 🐷💬

A simple yet oink-citing Node.js module that converts English sentences to Pig Latin. Now you can talk like a pig, or at least in Pig Latin! 🐷

🚀 Installation

Install PiggyTalk using npm:

npm install piggytalk

👩‍💻 Run Locally

If you want to run the module locally, you can follow these steps:

  1. Clone the repository to your local machine.
  2. Navigate to the repository using your terminal.
  3. Run the script with Node.js. For example:
node index.js

📖 Usage/Examples

First, require PiggyTalk in your script:

const piggyTalk = require('piggytalk');

Then, you can convert any English sentence to Pig Latin:

console.log(piggyTalk("I do not need to get a new kitten"));
// Output: Iay oday otnay eednay otay etgay aay ewnay ittenkay
console.log(piggyTalk("I am so excited to go to the zoo"));
// Output: Iay maay osay xcitedeay otay ogay otay hetay oozay
console.log(piggyTalk("I love coding in JavaScript"));
// Iay ovelay odingcay niay avaScriptJay

Screenshot

Package Sidebar

Install

npm i piggytalk

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

2.55 kB

Total Files

3

Last publish

Collaborators

  • alexawhitney