
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
crossroads
Advanced tools
Crossroads.js is a routing library inspired by URL Route/Dispatch utilities present on frameworks like Rails, Pyramid, Django, CakePHP, CodeIgniter, etc... It parses a string input and decides which action should be executed by matching the string against multiple patterns.
If used properly it can reduce code complexity by decoupling objects and also by abstracting navigation paths.
See project page for documentation and more details.
This library requires JS-Signals to work.
Files inside dist
folder.
You can install Crossroads on Node.js using NPM
npm install crossroads
dev -> development files
|- lib -> 3rd-party libraries
|- src -> source files
|- tests -> unit tests
dist -> distribution files
master -> always contain code from the latest stable version
release-** -> code canditate for the next stable version (alpha/beta)
dev -> main development branch (nightly)
gh-pages -> project page
**other** -> features/hotfixes/experimental, probably non-stable code
This project uses Node.js for the build process. If for some reason you need to build a custom version install Node.js and run:
node build
This will delete all JS files inside the dist
folder, merge/update/compress source files and copy the output to the dist
folder.
IMPORTANT: dist
folder always contain the latest version, regular users should not need to run build task.
Open dev/tests/spec_runner-dist.html
on your browser.
spec_runner-dist
tests dist/crossroads.js
and spec_runner-dev
tests files inside
dev/src
- they all run the same specs.
Install npm and run:
npm install --dev
npm test
Note that node.js can only run the distribution file, so any change to the
dev/src
files will require a new node build
. npm link
takes care of
installing dependencies and
updating crossroads at
each change to the dist/crossroads.js
file.
v0.11.0 (2012/10/31) ##
crossroads.pipe()
and crossroads.unpipe()
(#70)crossroads.ignoreCase
, default is
true
(#53)crossroads.ignoreState
. (#57)decodeQueryString()
now respects shouldTypecast
(#71)Route.rules
array validation to be case insensitive if
crossroads.ignoreCase = true
(#49)FAQs
Flexible router which can be used in multiple environments
The npm package crossroads receives a total of 7,130 weekly downloads. As such, crossroads popularity was classified as popular.
We found that crossroads demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.