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

blog-engine-sac

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blog-engine-sac - npm Package Compare versions

Comparing version 5.7.0 to 5.8.0

source/media/image/scaleImage.js

7

html/images.js
export { makeBackGroundPicture };
import { standard, small} from "../source/media/image/scaleImage.js"
const makeBackGroundPicture = (name) => {
return `<picture class="position-relative">
<source srcset="/images/${name}.jpg" media="(min-width: 992px)">
<img class="w100 hauto" src="/images/${name}-s.jpg" alt="">
<source srcset="/images/${name}.jpg" media="(min-width: 1392px)">
<source srcset="/images/${name}-${standard}.jpg" media="(min-width: 992px)">
<img alt="" src="/images/${name}-${small}.jpg" class="w100 hauto">
</picture>`;
};
{
"name": "blog-engine-sac",
"version": "5.7.0",
"version": "5.8.0",
"description": "static site generator, that uses markdown files as input and outputs web pages",

@@ -26,3 +26,4 @@ "license": "CC0-1.0",

"node-html-parser": "^1.3.1",
"rollup": "^2.32.0"
"rollup": "^2.32.0",
"sharp": "^0.26.2"
},

@@ -29,0 +30,0 @@ "devDependencies": {

@@ -12,7 +12,14 @@ # [Blog-engine-sac](https://gitlab.com/GrosSacASac/blog-engine-z)

3. Create a valid package.json file with `npm init` for example
4. Run the command [`npm i blog-engine-sac --ignore-scripts`](https://www.npmjs.com/package/blog-engine-sac)
5. add script `"sac": "node node_modules/blog-engine-sac/source/main.js"` inside package.json
4. Run the command [`npm i blog-engine-sac`](https://www.npmjs.com/package/blog-engine-sac)
5. add scripts inside package.json
```json
"scripts": {
"sac": "node node_modules/blog-engine-sac/source/main.js",
"scaleImages": "node node_modules/blog-engine-sac/source/media/image/scaleImageCli.js"
}
```
5. follow instructions below to create required files
6. `npm run sac`
7. to view the results use a static file server
7. `npm run scaleImages`
8. to view the results use a static file server

@@ -47,3 +54,3 @@ ### Create a new post

Create a file that describes where to find the external post. For example js-style-guide.json
Create a file that describes where to find the external post. For example js-style-guide.json . Including a post from the web: Add a json file in `source/` with `src` set to the url.

@@ -56,10 +63,9 @@ ```json

#### Including a post from the web
Another Example with this readme file:
Alternative is to add a json file in `source/` with `src` set to the url. Example with this readme file:
```json
{
"src": "https://gitlab.com/GrosSacASac/blog-engine-z/-/raw/master/README.md",
"lang:": "en"
"lang:": "en",
"Content-Type": "text/markdown"
}

@@ -66,0 +72,0 @@ ```

@@ -160,3 +160,3 @@ export { processPost, processExternalPost, supportedFormats, getDetailsFromPost };

const extension = extname(fullPath).substr(1);
if (!supportedFormats.includes(extension)) {
if (!supportedFormats.includes(extension) && extension !== ``) {
console.warn(`File format from ${fullPath} is ${extension} extension and not recognized.

@@ -163,0 +163,0 @@ Use one of ${supportedFormats.join(`, `)} instead.`);

@@ -0,0 +0,0 @@ export { consoleOutputEarly, consoleOutputReady };

@@ -0,0 +0,0 @@ export { isLocalUrl };

Sorry, the diff of this file is too big to display

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