New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@flourish/pocket-knife

Package Overview
Dependencies
Maintainers
10
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flourish/pocket-knife - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "@flourish/pocket-knife",
"version": "0.1.0",
"version": "0.1.1",
"description": "Flourish module with handy tools",

@@ -5,0 +5,0 @@ "main": "pocket-knife.js",

@@ -0,2 +1,7 @@

function isUndefined(string) {
return string === undefined || string === null;
}
function isUrl(string) {
if (isUndefined(string)) return null;
return string.match(/^https?:\/\//i);

@@ -6,5 +11,6 @@ }

function isImage(string) {
return string.match(/^https?:\/\/.+\.(jpg|jpeg|svg|png|gif)$/i);
if (isUndefined(string)) return null;
return string.match(/^https?:\/\/.+\.(jpg|jpeg|svg|png|gif|webp)$/i);
}
export { isUrl, isImage }
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