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

react-pathing-builder

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-pathing-builder

A React component for building pathing graphs on maps.

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

react-pathing-builder

A map builder for pathing applications

Install as a Dependency

In your existing npm-like repository, run one of the following:

yarn add react-pathing-builder
# or
npm install react-pathing-builder

once added, import as needed:

import * as React from 'react'
import {render} from 'react-dom'
import {PathingBuilder} from 'react-pathing-builder'

// example
render(<PathingBuilder mapSrc="https://placehold.it/300" />)

Test / Develop

git clone git@github.com:skgrush/react-pathing-builder.git
cd react-pathing-builder
yarn install
yarn start

Starts up a webpack dev server pointing at examples/src, which imports from the full TypeScript src, available at localhost:3001.

Build

yarn build

Transpiles and packs src into lib/index.js, builds TypeScript declaration files at lib/*.d.ts, and copies the css file.

scripts

  • yarn - install dependencies and build
  • yarn start - start webpack dev server
  • yarn build - build the module, including types

npm equivalent scripts

npm start works, and other scripts that don't call yarn work just fine with npm.

Build:

npm run clean:build && \
  npm run build:types && \
  npm run build:js && \
  npm run build:css

FAQs

Package last updated on 24 Jan 2021

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