Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

parlor

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parlor

A collection of tools for creating React and Next.js apps

  • 0.0.7
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

CircleCI Dependency Status styled with prettier

parlor

A collection of tools for creating React and Next.js apps

how to use

  1. Install: yarn add parlor or npm i -S parlor
  2. Use:
...
import { syncRouting } from 'parlor';
import { matches, getCurrentPath, pages } from '../lib/routing';
...

class ReduxApp extends NextApp {
  ...
  componentDidMount() {
    syncRouting({ matches, getCurrentPath, pages });
  }
  ...
}

export default ReduxApp;

requirements

tools

  • next-server.js - a replacement for server.js within a Next.js app that always renders the root page every time
  • spa-server-maker - creates a server from the build folder and serves index.html for all requests
  • spa-server - starts an spa server using spa-server-maker
  • sync-routing - for use within the _app.js of a Next.js app

commands

  • yarn to install NPM packages
  • yarn pretty to clean code
  • yarn lint to check code is clean
  • yarn ci to run all continuous integration tests

FAQs

Package last updated on 24 Oct 2018

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