npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

shakespeareplusplus

v1.0.8

Published

In the realm of code, ***Shakespeare++*** doth reign, a language so tender, that toucheth the very heart, With words most noble and syntax most poetic, it transforms the art of programming into a sonnet of logic and elegance.

Downloads

3

Readme

Shakespeare++

In the realm of code, Shakespeare++ doth reign, a language so tender, that toucheth the very heart, With words most noble and syntax most poetic, it transforms the art of programming into a sonnet of logic and elegance.

Prithee, try our VSCode extension.

And verily, explore our online playground.

Installation

Ensure thy Node.js hath been setup upon thou device

For Linux and Mac

Open thy terminal and inscribe thy following command:

npm install -g shakespeareplusplus

Shouldst thou be met with a permission error, thou might need to prefix the command with sudo to grant it proper authority.

sudo npm install -g shakespeareplusplus

For Windows

Open thy Powershell in administrator mode and inscribe thy following command:

 npm install -g shakespeareplusplus 

Execute thy command to run thou script

Set-ExecutionPolicy RemoteSigned

Learneth more about Powershell ExecutionPolicy

Invoke this command to discern the location of Node.js upon thine system, and thus add it to thy Path Environment Variable (add the "folder" where node.js is installed)

node -p "process.execPath"

Run

To commence thy execution of thou script

In Repl Mode:

shakespeare++

Execute a (.spp) file:

shakespeare++ <filename>

Syntax

Variable Declaration

granteth yonder varName withUtmostRespect

Variable Initialization

granteth yonder varName equivalethTo value withUtmostRespect

Constant Initialization

  steadFast yonder varName equivalethTo value withUtmostRespect

Array Initialization

granteth yonder arr[] equivalethTo {10 20 "30" ...} withUtmostRespect

Accessing Array

Access first element

arr addethPolitelyWith 0

Access second element

arr addethPolitelyWith 1

Function

summonThouMechanism function(parameter1 invokeThouComma parameter2...) {
	<statements>
	<last statement will automatically be returned
}

Demonstration: Behold! thy sum of two numerical values

summonThouMechanism sum(x invokeThouComma y){
	x addethPolitelyWith y
}

Object initialization

granteth yonder obj equivalethTo {
	shake summonThyColon 10 invokeThouComma
	speare summonThyColon "plusplus" invokeThouComma
	sum summonThyColon summonThouMechanism s(x invokeThouComma y) {
		x addethPolitelyWith y
	} 
} withUtmostRespect

printethThouWordsForAllToSee(obj fullethStop shake)
printethThouWordsForAllToSee(obj fullethStop speare)
printethThouWordsForAllToSee(obj fullethStop sum(10 invokeThouComma 20))

For Loop

will runneth thy loop 10 times

forsoothCyclethThroughThyRange(
    granteth yonder i equivalethTo 0 withUtmostRespect
    i `lessThanThou` 10 withUtmostRespect
    i equivalethTo i addethPolitelyWith 1 withUtmostRespect) {
	<statements>
}

Note: don't forget the `` in lessThanThou

While Loop

whilstThouConditionHolds(*condition*) {
	<statements>
}

If Statement

providethThouFindestThyConditionTrue(*condition*) {
	<statements>
}

Else Statement

elsewiseRunnethThis {
	<statements>
}

If Else Statement

providethThouFindestThyConditionTrue(*condition*) {
	<statements>
} elsewiseRunnethThis {
	<statements>
}

If Else If Statement

providethThouFindestThyConditionTrue(*condition*) {
	<statements>
} elsewiseRunnethThis providethThouFindestThyConditionTrue(*condition*) {
	<statements>
}

Null

ashollowAsAFoolsHead

False

asFalseAsAFlimsyFabric

True

asTrueAsTheLightOfDay

Binary Operators:

=

equivalethTo

+

addethPolitelyWith

-

subtractethPolitelyWith

*

multiplethPolitelyWith

/

dividethPolitelyWith

%

modulethPolitelyWith

Comparsion:

Note: Don't forget the ` at the start and end

&&

`andeth`

||

`either`

==

`equivalethTo`

!=

`notEquivalethTo`

<

`lessThanThou`

>

`greaterThanThou`

<=

`lessThanEquivalethToThou`

>=

`greaterThanEquivalethToThou`

Others:

.

fullethStop

,

invokeThouComma

:

summonThyColon

Statement Terminator

withUtmostRespect

calculationShenanigans Object:

abs()

calculationShenanigans fullethStop unveilThyAbsoluteWorth(value)

sqrt()

calculationShenanigans fullethStop revealThouRootsWhimsy(value)

random()

calculationShenanigans fullethStop witnessThisErrantDigit(min invokeThouComma max)

log2()

calculationShenanigans fullethStop logOfTwosMeasure(value)

log10()

calculationShenanigans fullethStop logOfTenFold(value)

max()

calculationShenanigans fullethStop greatestOfThemAll(val1 invokeThouComma val2...)

Note: can take any number of arguments

min()

calculationShenanigans fullethStop littlestOfThemAll(val1 invokeThouComma val2...)

Note: can take any number of arguments

Time:

revealThyTime()

Note: returns the current timestamp in milliseconds since (January 1, 1970, 00:00:00 UTC)

Input:

inputString()

readethThineStringInput()

inputNum()

readethThineNumInput()

Import Other (.spp) Files:

summonYonFile("filename.spp")

Comments:

scribeThyThoughtsInSecretLines
*anything*
endethSecretLines

Honours

  • Thanks be unto thee, tylerlaceby, for the wondrous series thou hast bestowed.

  • Gratitude be unto thee, FaceDev, for the inspiration thou hast bestowed.