Socket
Socket
Sign inDemoInstall

create-app

Package Overview
Dependencies
5
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    create-app

configuring once, rendering both client and server.


Version published
Weekly downloads
361
increased by186.51%
Maintainers
1
Install size
190 kB
Created
Weekly downloads
 

Readme

Source

Create App

Configuring once, rendering both client and server.

Installation

Using npm:

$ npm install --save create-app
// using an ES6 transpiler, like babel
import createApp from 'create-app/client'
createApp()

import createApp from 'create-app/server'
createApp()

// not using an ES6 transpiler
var createApp = require('create-app/client')
var createApp = require('create-app/server')

Basic Usage

import createApp from 'create-app/client'

const app = createApp({
  container: 'body',
  basename: '/abc',
})

app.start(resolve, false)

let targetPath = `/random${Math.random().toString(36).substr(2, 6)}`
app.history.push(targetPath)

Keywords

FAQs

Last updated on 12 Jun 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc