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

geo-pattern-ts

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geo-pattern-ts - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

19

dist/index.d.ts

@@ -66,7 +66,26 @@ interface GeoPatternOptions {

interface GenerateReturn {
/**
* Gets the pattern's background color as a hexadecimal string.
*/
get color(): string;
/**
* Gets the SVG string representing the pattern.
*/
toSvg: () => string;
/**
* Gets the SVG string representing the pattern.
*/
toString: () => string;
/**
* Gets the pattern as a data URL suitable for use as a CSS background-image,
* i.e. `url("data:image/svg+xml;base64,PHN2ZyB...").`
*/
toDataUrl: () => string;
/**
* Gets the pattern as a data URI, i.e. `data:image/svg+xml;base64,PHN2ZyB....`
*/
toDataUri: () => string;
/**
* Gets the SVG as a Base64-encoded string.
*/
toBase64: () => string;

@@ -73,0 +92,0 @@ }

4

package.json
{
"name": "geo-pattern-ts",
"type": "module",
"version": "0.1.0",
"version": "0.1.1",
"packageManager": "pnpm@8.15.5",

@@ -12,3 +12,3 @@ "description": "Generate beautiful SVG patterns",

"type": "git",
"url": "https://github.com/pengzhanbo/geo-pattern-ts"
"url": "git+https://github.com/pengzhanbo/geo-pattern-ts.git"
},

@@ -15,0 +15,0 @@ "keywords": [

@@ -5,7 +5,7 @@ # GeoPattern

![jsr score](https://jsr.io/badges/@raise/geo-pattern/score)
![gzip size](https://img.badgesize.io/https:/unpkg.com/geo-pattern-ts/dist/index.js?label=gzip%20size&compression=gzip)
[![MIT](https://img.shields.io/npm/l/@pengzhanbo/geo-pattern-ts)](https://github.com/pengzhanbo/geo-pattern-ts/blob/main/LICENSE)
![npm package minimized gzipped size](https://img.shields.io/bundlejs/size/geo-pattern-ts?label=gzip)
[![MIT](https://img.shields.io/npm/l/geo-pattern-ts)](https://github.com/pengzhanbo/geo-pattern-ts/blob/main/LICENSE)
This is a TypeScript port of [jasonlong/geo_pattern](https://github.com/jasonlong/geo_pattern) with a
[live preview page](http://btmills.github.io/geopattern/).
[live preview page](https://geo-pattern.netlify.app/).

@@ -12,0 +12,0 @@ ## Install

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