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

hersheytext

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

hersheytext - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

6

lib/hersheytext.js

@@ -151,2 +151,4 @@ /**

// Change CRLF with just LF
text = text.replace(/\r\n/g, "\n");
try {

@@ -162,3 +164,5 @@ var font = exports.fonts[options.font] ? exports.fonts[options.font].chars : exports.fonts['futural'].chars;

out.push({type: text[i], d: font[index].d, o: font[index].o});
} else if (text[i] === ' ') {
} else if (text[i] === "\n") {
out.push({type: 'newline'});
}else if (text[i] === ' ') {
out.push({type: 'space'});

@@ -165,0 +169,0 @@ }

2

package.json
{
"name": "hersheytext",
"description": "A port of the Hershey engraving fonts to JSON for JavaScript/SVG",
"version": "0.5.0",
"version": "0.5.1",
"main": "lib/hersheytext.js",

@@ -6,0 +6,0 @@ "maintainers": [

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