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

jsonresume-theme-eloquent

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonresume-theme-eloquent - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

13

assets/scripts/script.js

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

(function(document, saveAs, smoothScroll, downloadName) {
(function(document, saveAs, smoothScroll, emailScramble, downloadName) {
'use strict';

@@ -14,5 +14,14 @@

var decode = emailScramble.decoder(12);
var linkText = document.querySelectorAll('[data-scrambled-email]')[0];
var mailtoLink = document.querySelectorAll('[data-scrambled-mailto]')[0];
var encodedMail = mailtoLink.href.replace('mailto:', '');
mailtoLink.href = 'mailto:' + decode(encodedMail);
linkText.innerHTML = decode(encodedMail).split('@').join('@<span style="display:none;">foo</span>');
smoothScroll.init({
speed: 300
});
})(document, window.saveAs, window.smoothScroll, window.downloadName);
})(document, window.saveAs, window.smoothScroll, window.emailScramble, window.downloadName);
var Handlebars = require('handlebars');
var moment = require('moment');
var encode = require('email-scramble').encoder(12);

@@ -33,2 +34,7 @@ var parseText = function(text, pattern, replacement, lowercase) {

},
scrambleEmail: function(email) {
email = Handlebars.escapeExpression(email || '');
email = encode(email);
return new Handlebars.SafeString(email);
},
formatMMMMYYYY: function(date) {

@@ -35,0 +41,0 @@ return formatDate(date, 'MMMM YYYY');

@@ -28,3 +28,4 @@ var fs = require('fs');

smoothScroll: inlineJS('../node_modules/smooth-scroll/dist/js/smooth-scroll.min.js'),
emailScramble: inlineJS('../node_modules/email-scramble/email-scramble.js'),
script: inlineJS('../assets/scripts/script.js')
};

3

package.json
{
"name": "jsonresume-theme-eloquent",
"version": "0.6.0",
"version": "0.6.1",
"description": "An eloquent JSON Resume theme: fluent, persuasive, for developers. This theme is a fork of the Elegant theme.",

@@ -29,2 +29,3 @@ "author": "Thibaud Colas",

"csso": "^1.3.11",
"email-scramble": "^1.0.1",
"handlebars": "^2.0.0",

@@ -31,0 +32,0 @@ "moment": "^2.8.4",

@@ -17,2 +17,3 @@ jsonresume-theme-eloquent

- View your resume even without an internet connection: the theme is self-contained (NB: your picture should be inlined for this to fully work).
- Obfuscates your email address from spam bots.
- Great Font Awesome icons.

@@ -47,3 +48,2 @@ - Gorgeous Open Sans web font.

- Minify HTML? https://www.npmjs.com/package/html-minifier
- Switch partials to be loaded on render, livereload without nodemon

@@ -50,0 +50,0 @@ ## LICENSE (ISC)

Sorry, the diff of this file is not supported yet

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