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

@cowprotocol/cow-runner-game

Package Overview
Dependencies
Maintainers
8
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cowprotocol/cow-runner-game

Cow runner game

  • 0.2.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
8
Created
Source

Cow Runner Game - React component

The trex runner game extracted from chrome offline error page, but with less dinosaurs and more Cows!

This project is a typescript library that provides CowGame as a react component.

Changes over the original:

  • Broken down into smaller entities (see src/game/model)
  • Converted into typescript project
  • The game has ben wrapped into a React component
  • The React component is exported as a library
  • Integrated with webpack. You can build the HTML page or run it in dev mode

🏗 Pending to add the sprites and styles for the cow game.

Usage

Add dependency to your project:

yarn add @cowprotocol/cow-runner-game

Use the CowGame react component:

import { CowGame } from '@cowprotocol/cow-runner-game'

export default function Your () {
  return (
    <div>
      <h1>Cow Game</h1>
      <p>Try not to get 🥪</p>

      <CowGame />
    </div>
  )
}

Development

Install dependencies

yarn

Run dev browser

yarn start

Build library

yarn build

FAQs

Package last updated on 03 Apr 2022

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