JSPM

a-cool-package

1.0.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 5
    • Score
      100M100P100Q28252F
    • License MIT

    It's actually lit

    Package Exports

    • a-cool-package

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (a-cool-package) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    This package is the one package that you can always use when teaching people about npm. It is amazing, simple, has a great name and makes a perfect joke.

    You: "Let's start out by installing a-cool-package"
    Fabian: "Alright, what package do you want me to install?"
    You: "A cool package"
    Fabian: "Ehh, ok. I guess I will install Svelte because that's trendy"
    runs npm install svelte
    You: "What are you doing, I clearly said to install a-cool-package"
    Fabian: "Wtf do you want from me?"
    You: "Jokes on you. The package is literally called a-cool-package"
    Fabian: "I hate you so much you can't even believe it"


    Usage

    Actually has functionality.

    const superCrazyAmazingFunction = require('a-cool-package')
    superCrazyAmazingFunction('Linda', 10) // returns 'Linda is someone that anyone likes to see :)'

    SHOW ME DE CODE

    It's literally this. Try hacking it

    const superCrazyAmazingFunction = (theNameOfYourMum, niceness) => {
      let endString = theNameOfYourMum
      switch (niceness) {
        case (niceness > 10):
          endString += "is the most amazing person on the world!!!! <3333"
          break;
        case (niceness > 8):
          endString += "is someone that anyone likes to see :)"
          break;
        case (niceness > 5):
          endString += "is a mum, thats already amazing by itself but average"
          break;
        case (niceness > 3):
          endString += "could be better"
          break;
        case (niceness > 0):
          endString += "not nice"
          break;
        default:
          endString += "a bad person and it's better without her"
          break;
      }
      return endString
    }
    
    export default superCrazyAmazingFunction