Socket
Socket
Sign inDemoInstall

live-guide

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

live-guide - npm Package Compare versions

Comparing version 0.9.2 to 0.9.4

8

lib/filter-array/lib/syntax.js

@@ -38,3 +38,3 @@ 'use strict';

example: [`//@example\n//<button class="btn">Click me, I do stuff!</button>\n//\n`, `/*\n@example\n*<button class="btn">Click me, I do stuff!</button>\n*/`],
notes: 'Any example written in a single line comments will need a blank comment line `//` after it.',
notes: 'Any example will need a blank comment line after it.\nYou can add blank lines in examples with `\n`.',
pattern: /^@example(.*?)?$\s((?:^.+$\s?)+)/gm,

@@ -52,4 +52,6 @@ task: function(obj) {

description: `Allows line to be skipped on output`,
pattern: /^@skip(.*)/,
filter: ''
pattern: /^(@skip.*)$/gm,
task: function(obj) {
obj.filteredComments = obj.filteredComments.replace(this.pattern, (match, capture) => '');
}
},

@@ -56,0 +58,0 @@

@@ -20,2 +20,4 @@ 'use strict';

snippet = snippet.replace(/\\n/g, '');
let fileName = `${frameName}-example-${exampleCount}.html`,

@@ -22,0 +24,0 @@ exampleSource = path.resolve(__dirname, '../write-html/templates/example-code.hbs'),

{
"name": "live-guide",
"version": "0.9.2",
"version": "0.9.4",
"description": "Generate style guides based on commented style sheets.",

@@ -5,0 +5,0 @@ "author": {

@@ -66,3 +66,5 @@ live-guide

**Description:** A code example, similar to writing code blocks in Markdown
*Any example written in a single line comments will need a blank comment line `//` after it.*
*Any example will need a blank comment line after it.
You can add blank lines in examples with `
`.*

@@ -69,0 +71,0 @@ **Example:**

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