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

hero-patterns

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hero-patterns - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

4

package.json
{
"name": "hero-patterns",
"version": "0.1.1",
"description": "CSS & JS for setting patterns from heropatterns.com",
"version": "0.1.2",
"description": "Patterns from heropatterns.com exported as ES6 functions",
"main": "index.js",

@@ -6,0 +6,0 @@ "jsnext:main": "index.js",

@@ -5,2 +5,4 @@ # `hero-patterns.js`

Each pattern from [Hero Patterns](http://heropatterns.com) has its own function. Each function returns the SVG data as a string wrapped in a `url()` function. The functions take two parameters: one for setting the fill color, the other for setting the fill opacity.
# Usage

@@ -16,4 +18,2 @@

Each pattern is represented as a function taking two arguments, one for fill color and the other for fill opacity.
```js

@@ -20,0 +20,0 @@ import {ticTacToe} from 'hero-patterns'

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