node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »


PHP style node, psn

Same thing as PHP except you get to use javascript code in place of php code. Code delimiters are <% and %>


  Here's some html.
  <%= 'Heres some dynamic output' %>


  • 1: Create new folder and put an empty server.js file in it
  • 3: Put require('psn').startServer() in the file.
  • 4: Open the Terminal or Command Prompt at this directory and run:
    npm install devinrhode2/psn
    //This will fail if you don't have the latest version of node and npm
  • 5: Create a site. Use .ejs files instead of .php. Good luck with databases or doing anything really interesting. I'm sarcastically serious.

  • 2: undefined


At this point you should really contribute if you use this, or consider feeding me to enhance it. Please follow the guidelines.


Should refer to psn as Not PhotoShop the carry on the acronym mis-ordering of php, hypertext pre-processor, this will assure it doesn't become widely known. The meanest way to hate is silently, so this is a compromise to simply aschew and confuse others about the meaning of the acronym psn


Issues tab is a fun place for this. However, Hardcore trolling(R) takes in the pull requests tab. Ideally the psn(R) project prefers really useful but sneakily shitty code that will bite people in the ass later. Failing silently, mis-naming functions, and leaking memory are all favorable things with psn. Code that fails to do this will probably not be accepted.