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

slangscript

v1.0.9

Published

the slang compiler

Downloads

3

Readme

welcome to slang script 😋

auther : Damian Mostert email : [email protected] slang lang is an adaptable script allowing you to edit java scirpt with a word list, I will soon have many available, my mission is to make java script not just a fully writable language in english santax, but in every language there is :),

current built in languages

• english, is also defualt • mandrin • russian • hindi • afrikans more comming soon :)

install

npm i slangscript

usage

//in your app.js
const fs = require('fs');
const slang = require("slangscript")
fs.readFile('api.slang', 'utf8', function(err, data){
  eval(slang.compileString({
  data:data,
  lang:"eng"
  /*avalable language options
      eng english
      mand mandrin
      afr afrikans
      ru russian
      hin hindi
  */
  }))
  //eval(slang({data:data,coffee:true})) // for coffiescript
});


//and in your api.slang
num is 0
if(num bigger than 2){
  console.log("num is bigger than 2")
}else if(num smaller than 2){
  console.log("num is smaller than 2")
}


/*afr example
V is 0
as(V grooter as 2){
  console.log("num is bigger than 2")
}anders as(V kliener as 2){
  console.log("num is smaller than 2")
}anders{
  console.log("num is 2")
}

*/

/* mandrin example
num 是 0
如果(num 大于 2){
  console.log("num is bigger than 2")
}否则如果(num 小于 2){
  console.log("num is smaller than 2")
}别的{
  console.log("num is 2")
}

*/

// now just run node app.js
// you will now find that you can write javascript with english santax :)
// alot more language librarys comming soon
// i apologize if some of my santax is incorect with some languages, I only know eng, you can email me and ill fix it :)
// this is what slangscript can do :) crazy right?

how to use custom list

const slang = require("slangscript")
slang.compile({
customList:[
[" is ","="]
],
data:`
X is hey
`,
//result is " X = hey "
})

command line usage

once you installed slangscript npx slang should be avalable as a command, this is for executing js files with slang santax

npx slang yourfile.slang

with coffeescript :

npx slang yourfile.slang coffee

using alternative languages, defualt is english mandrin example :

npx slang yourfile.slang mandrin

with coffeescript :

npx slang yourfile.slang mandrin coffee

slangscript also does not interfere with your strings, so no need to worry about that 😋, now its just fun code