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

urturn-expression-api

v1.3.5

Published

Urturn.com expression API

Downloads

67

Readme

Build Status

Changelogs

0.8.2

  • FIX: ready event triggered twice if registered after edit.

0.8.1

  • NEW: Video data added

0.8.0

  • NEW: Use scroll() to get the current scroll position and scroll({top: 123}) or scroll({bottom: 0}) to scroll to specific positions.
  • NEW: Added the method UT.Post.queueUp(name, callback) that will retrieve the next available number in the sequence name.
  • NEW: Expression starting from 0.8.0 must support to be resized in width at runtime.
  • NEW: use size() to retrieve the current size.
  • REFACTOR: Listen on 'scroll' instead of 'scrollChanged' to get notified when the scroll has been updated.
  • REFACTOR: use size(args) instead of resize(args) to resize the post.
  • REFACTOR: post.size() and post.scroll() now accept an optional callback that will be triggered once the operation complete. The global events post.on('scroll') and post.on('resize') will be called as well as before.
  • FIX: scroll event is fixed.
  • FIX: post.users('current') now have valid numberOfPost and numberOfUse values (notes that there might be some delays to the update).

0.7.5

  • FIX: fixed a bug where parent data collection was preventing expression loading on mobile.

0.7.2

  • FIX: context use indiferently 'editor' or 'edit'. Now use 'editor' or 'player' syntax.

0.7.1

  • REFACTOR UT.Collection / UT.PublicCollection: Collection and PublicCollection are now two different classes given the fact their roles are indeed very differrent.
  • ADD: UT.PublicCollection.find() retrieve the most recent item of the collection. This open the door to a whole new kind of expression where viewer items are used directly rather than with their comments.
  • ADD: UT.User, representing a user
  • ADD: UT.Post#users([items], callback) a method that retrieve an array of UT.User for a given array of items, the current user when 'current' is given as first parameter or an UT.User instance if only one item is given.
  • ADD: UT.Post#isOwner(user) return true if the given user is the post owner
  • ADD: UT.Post#isCurrentUser(user) return true if the given user is the current user

0.6.3

  • FIX: a bug where .dialog callback was not called when user close the library

0.6.2

  • FIX: a bug that prevent .on('media') to work correctly with bookmarklet.

0.6.1

  • ADD User API: let you retrieve information on current user.
  • ADD: support for new UT.Image(URL) : let you create an UT.Image form an url.
  • ADD: pause event on post, called when post is hedded and media should pause.
  • FIXED : Multiple bugs in user collection
  • Fix a bug where array cannot be serialized
  • Fix a bug where items with null value was not fully removed
  • Fix a bug where undefined items was not removed
  • Fix a bug where setting an item to null was throwing an exception on save (issue #8381)
  • Fix a bug where storage was accepting functions, now throw an Error
  • Better tests of collections sanitization method
  • Refactor the tests to avoid using public collections for everything

0.6.0

  • Implements the 'flat API'.

0.5.2

  • add a new method to get Parent Document data when use Urturn. Use expression.getParentData() to get parent document data. Return an empty object if no data are set.

## 0.5.1

  • new method signature for Post#textInput([options], [callback]) where options support keys value, max and multiline, and callback receive the resulting string or null if none are typed.

Build Process

We use Grunt to build the package and bower to manage our internal dependencies. Every dependencies must have a valid bower.json file that will list their main resources.

License

Copyright Webdoc Inc. 2012, all rights reserved