Socket
Book a DemoInstallSign in
Socket

playgrounds

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

playgrounds

Code playgrounds for your computer

unpublished
latest
Source
npmnpm
Version
0.9.0
Version published
Maintainers
1
Created
Source

Playgrounds

What is Playgrounds?

Playgrounds is an alternative to Codesandbox or webpackbin with the difference that it's running locally on your computer. This gives you the advantage that you can use your own editor which is already configured like you want. Playgrounds is build to quickly prototype new ideas or try out libraries but not for production ready applications.

Getting Started

# Install playgrounds on your machine
npm install -g playgrounds

# Create your first playground
playgrounds

You can use npx playgrounds to try out playgrounds without installing it globally.

Getting started

Features

JSX

We support JSX for React, Preact and Inferno. We decide which transform we use based on the imports of the file. If you import from react we will transform JSX to React.createElement. If you import from preact we transform JSX to h. If you import from inferno we transform JSX to Inferno.createVNode. Otherwise we will disable all JSX transforms.

Automatic Node Package Installation

As soon as you import a package from NPM we will download it for you so you don't have to care about this. We also install peer dependencies so nothing is missing.

Getting started

Babel Macros

We support babel-macros out of the box. Feel free to use them.

Templates

We currently have templates for React, Preact and styled-components. We try to keep the templates as simple as possible because nobody wants to delete code they don't need.

You can override the existing templates or create a new template in your ~/.playgrounds/templates directory. Create a new directory with the template name and put everything there you want. Then you can use the template with playgrounds --template <template-name>.

🦄

FAQs

Package last updated on 25 Jun 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