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

lett

v0.0.7

Published

lett is Not a Language

Downloads

10

Readme

lett

"lett" stands for Lett is Not a Language

It's JS interpreting text and trying to execute it.
Using the lexical parser called substring.
Not to be confused with CoffeeScript, it's not the same in any way.

Benefits

  • You do things differently, hence you are cool
  • Use it before it's known to reach hipster status
  • Cleaner code
  • More readable code (I approve)
  • Almost works
  • One-time interpreting (not that slow)
  • Semi-integration of underscore.js without augmenting
  • Small footprint

How it works

lett is suppose to be a feature-less language (err library) without keywords and few symbols.
Current symbols are:

. ( ) { } ' "

Creating objects

hello 'world!'


welcome { 
    to 'the world'
    and {
        in 'the'
        year 2012
    }
} 

Calling functions

console.log('hello' 'world')

Creating functions

()

Functions with arguments

(a b c console.log(a b c))

Function bodies

Last value is returned

(a b c (
    console.log('Adding: ' a b c)
    +(a b c)))

Chaining

array(1 2 3).map(
    (i +(i i)))

Semi-integration with underscore

last(array(1 2 3))

Underscore

Is awesome.
If underscore is available you can call it directly, like this

first(array(1 2 3))

For documentation on underscore please see http://documentcloud.github.com/underscore
I have no idea what works and what fails.

Simple dump of some functions:

"each(list, iterator, [context])
map(list, iterator, [context])
reduce(list, iterator, memo, [context])
reduceRight(list, iterator, memo, [context])
find(list, iterator, [context])
filter(list, iterator, [context])
reject(list, iterator, [context])
all(list, iterator, [context])
any(list, [iterator], [context])
include(list, value)
invoke(list, methodName, [*arguments])
pluck(list, propertyName)
max(list, [iterator], [context])
min(list, [iterator], [context])
sortBy(list, iterator, [context])
groupBy(list, iterator)
sortedIndex(list, value, [iterator])
shuffle(list)
toArray(list)
size(list)
first(array, [n])
initial(array, [n])
last(array, [n])
rest(array, [index])
compact(array)
flatten(array, [shallow])
without(array, [*values])
union(*arrays)
intersection(*arrays)
difference(array, *others)
uniq(array, [isSorted], [iterator])
zip(*arrays)
indexOf(array, value, [isSorted])
lastIndexOf(array, value)
range([start], stop, [step])
bind(function, object, [*arguments])
bindAll(object, [*methodNames])
memoize(function, [hashFunction])
delay(function, wait, [*arguments])
defer(function)
throttle(function, wait)
debounce(function, wait)
once(function)
after(count, function)
wrap(function, wrapper)
compose(*functions)
keys(object)
values(object)
functions(object)
extend(destination, *sources)
defaults(object, *defaults)
clone(object)
tap(object, interceptor)
has(object, key)
isEqual(object, other)
isEmpty(object)
isElement(object)
isArray(object)
isArguments(object)
isFunction(object)
isString(object)
isNumber(object)
isBoolean(object)
isDate(object)
isRegExp(object)
isNaN(object)
isNull(object)
isUndefined(variable)
noConflict()
identity(value)
times(n, iterator)
mixin(object)
uniqueId([prefix])
escape(string)
template(templateString, [context])
chain(obj)