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

@3-/coffee_plus

v0.1.2

Published

[‼️]: ✏️README.mdt

Downloads

270

Readme

@3-/coffee_plus

test/main.coffee :

#!/usr/bin/env coffee
import TEST from './code.js'
import CoffeeScript from "coffeescript"
import hack from '@3-/coffee_plus'
hack CoffeeScript

for [kind, code] from Object.entries(TEST)
  #if kind != 'export'
  #  continue
  console.log """## #{kind}

#{code}``` →

#{CoffeeScript.compile(code, bare:true)}```"""

output :

## label

y = 0

:$ x=y*2

:$ if y>2 then x+=y else x-=y

:$ if x > y x = y/2 else x = y+9 x += 1

:$ func = => 1

:$ func = -> 1 2

do => :out for i in [1,2,3] for j in [4,5,6] console.log i,j if i > 1 break out return

var func, x, y;

y = 0;

$ : x = y * 2;

$ : y > 2 ? x += y : x -= y;

$ : { if (x > y) { x = y / 2; } else { x = y + 9; } x += 1; }

$ : (func = () => { return 1; });

$ : (func = function() { 1; return 2; });

(() => { var i, j, k, l, len, len1, ref, ref1; out : { ref = [1, 2, 3]; for (k = 0, len = ref.length; k < len; k++) { i = ref[k]; ref1 = [4, 5, 6]; for (l = 0, len1 = ref1.length; l < len1; l++) { j = ref1[l]; console.log(i, j); if (i > 1) { break out; } } } } })();

## var

do =>

  • a,b

(() => { var a, b; })();

## import

fs1 path0

console.log 1

fs/promises fs/promises:fs fs2 fs: bun:sqlite:sqlite path1 test.css path3 > join dirname1 path4:@ > join3 path9:Path9 > join2 path5.js:@ > join1 base-x:BaseX base-y

xxx

base-z # xxx path5:p5 > join:J1 dirname2 fs3 path5:p6 > join:J dirname LIB_INDEX str2li node:util node:util > promiseify xx > bb$ x1 ./git > ROOT HOME STATIC ./lib/byTag.js:@ > byElem

import fs1 from 'fs1';

import path0 from 'path0';

console.log(1);

import promises from 'fs/promises';

import fs from 'fs/promises';

import fs2 from 'fs2';

import 'fs';

import sqlite from 'bun:sqlite';

import path1 from 'path1';

import 'test.css';

import { join, dirname1 } from 'path3';

import path4 from 'path4';

import { join3 } from 'path4';

import Path9 from 'path9';

import { join2 } from 'path9';

import path5 from 'path5.js';

import { join1 } from 'path5.js';

import BaseX from 'base-x';

import BaseY from 'base-y';

import BaseZ from 'base-z';

import p5 from 'path5';

import { join as J1, dirname2 } from 'path5';

import fs3 from 'fs3';

import p6 from 'path5';

import { join as J, dirname, LIB_INDEX } from 'path5';

import str2li from 'str2li';

import util from 'node:util';

import { promiseify } from 'node';

import { bb$, x1 } from 'xx';

import { ROOT, HOME, STATIC } from './git';

import byTag from './lib/byTag.js';

import { byElem } from './lib/byTag.js';

## export

< x < x = 1

< b=(a,b=1)=> a+b

< => a+b

< { C:1 } < {}

< xxx = -> 1+2

< class Test @(a,b,c)-> < class Test2 @-> < [ 1 ]

export var x;

export var x = 1;

export const b = (a, b = 1) => { return a + b; };

export default () => { return a + b; };

export default { C: 1 };

export default {};

export var xxx = function() { return 1 + 2; };

export var Test = class Test { constructor(a, b, c) {}

};

export var Test2 = class Test2 { constructor() {}

};

export default [1];