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

scrs

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrs

styled-components static renderer

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
72
140%
Maintainers
1
Weekly downloads
 
Created
Source

scrs

styled-components render static

npm i -g scrs

CLI

// App.js
import React from 'react'
import styled from 'styled-components'

const Heading = styled.h1`
  color: tomato;
`

export default props => (
  <React.Fragment>
    <head>
      {props.styles}
    </head>
    <Heading>
      Hello
    </Heading>
  </React.Fragment>
)
scrs App.js > index.html

Node API

const React = require('react')
const scrs = require('scrs')
const App = require('./App')

const html = scrs(props => (
  React.createElement(App, props)
))

Options

  • --svg (boolean) use SVG doctype instead of HTML

MIT License

FAQs

Package last updated on 28 May 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