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

@parallaxagency/browsergrid

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parallaxagency/browsergrid

BrowserGrid

  • 1.0.7
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
24
increased by4.35%
Maintainers
1
Weekly downloads
 
Created
Source

Introduction

BrowserGrid allows you to replicate your Photoshop guides in your browser.

Motivation

We found ourselves using tools to overlay semi-opaque designs over our websites to ensure we were working to the correct guide lines. It seemed more logical to have these guides in the browser.

Installation

To install BrowserGrid in a project:

yarn add @parallaxagency/browsergrid

Then import BrowserGrid as a module:

import BrowserGrid from '@parallaxagency/browsergrid'

// eslint-disable-next-line no-unused-vars
const browserGrid = new BrowserGrid([
  {
    width: 1440,
    cols: 18,
    gutter: 10,
    includeCenterLines: 6
  },
  {
    width: 960,
    cols: 12,
    gutter: 10,
    color: '#f00',
    includeCenterLines: 3
  }
])

Development Setup

BrowserGrid uses a slightly different build process than our other projects. Rather than using Gulp, we just use webpack and npm scripts for other functionality like linting.

When actually doing development on this project the only change you will really notice is some of the CLI commands have changed.

To compile JS with webpack and watch for changes:

npm run dev

To make a release version:

npm run build

To run linters:

npm run lint

It's unlikely you will even have to run the last two commands as they are automatically run when publishing a new version or committing changes.

FAQs

Package last updated on 10 Nov 2017

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