New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cherrytree

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cherrytree

Cherrytree is a hierarchical router for clientside web applications.

  • 0.5.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-77.27%
Maintainers
1
Weekly downloads
 
Created
Source

Cherrytree

build status

Cherrytree is a framework agnostic hierarchical router. When your application starts, the router is responsible for displaying views, loading data, and otherwise setting up application state. It does so by matching the current URL to the routes that you've defined.

It's heavily inspired by Ember.js router and is built on top of tildeio/router.js - a library written by the good folks of Ember. Cherrytree, however, does not depend on Ember or any other framework and so can be used with other libraries such as Backbone, React, Angular.

Installation

Cherrytree supports both AMD and CJS. It's on npm and bower.

npm install --save cherrytree

or

bower install --save cherrytree

Docs

Read the guide or the API docs.

Examples

Features

  • generate links in your application in a simple, systematic way, e.g. router.generate("commit.index", "1e2760")
  • easily switch between pushState or hashState - all urls in your app are generated the right way depending on which mode you're in
  • load parts of the app on demand with custom resolvers
  • use routes for creating models, views and managing their lifecycles
  • dynamic segments and query params
  • transition is a first class citizen - abort, pause, resume, retry failed ones. E.g. pause the transition to display "There are unsaved changes" message if the user clicked some link on the page or used browser's back/forward buttons
  • navigate around the app programatically, e.g. router.transitionTo("commits")
  • rename URL segments (e.g. /account -> /profile) without having to change route names or rewrite links

Keywords

FAQs

Package last updated on 31 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc