New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@allain/surplus-router

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@allain/surplus-router

Simple router for use with surplus

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
81
268.18%
Maintainers
1
Weekly downloads
 
Created
Source

surplus-router

A simple router for use with Surplus

NPM

Install

npm install --save surplus-router

Example Usage

import * from Surplus from 'surplus'
import { Route } from 'surplus-router'

const view = <div>
    <Route path="/">
      <h1>Main Page</h1>
      <p><a href="#/test/123">Test 123</a></p>
      <p><a href="#/test/456">Test 456</a></p>
    </Route>
    <Route path="/test/:number">{({number}) => <p>Test {number}</p>}</Route>
  </div>;

document.body.appendChild(view); // add view to document

API

License

ISC © allain

FAQs

Package last updated on 30 Jul 2019

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