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

generator-reveal

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-reveal - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "generator-reveal",
"version": "0.0.2",
"version": "0.0.3",
"description": "A Reveal.js generator for Yeoman",

@@ -5,0 +5,0 @@ "keywords": [

@@ -49,3 +49,3 @@ # Generator-reveal

After you fill your slide with content, you need to add the slide filename to your `slides/list.json` file, e.g.
And the slide filename will be added to your `slides/list.json` file.

@@ -52,0 +52,0 @@ ```json

'use strict';
var util = require('util');
var yeoman = require('yeoman-generator');
var fs = require('fs');
var path = require('path');

@@ -16,4 +18,10 @@ var SlideGenerator = module.exports = function SlideGenerator(args, options, config) {

SlideGenerator.prototype.files = function files() {
var filename = 'slides/' + this._.slugify(this.name) + '.md';
this.template('slide.md', filename);
var filename = this._.slugify(this.name) + '.md';
var fullfilename = 'slides/' + filename;
this.template('slide.md', fullfilename);
var appPath = process.cwd();
var fullPath = path.join(appPath, '/slides/list.json');
var list = require(fullPath);
list.push(filename);
fs.writeFileSync(fullPath, JSON.stringify(list))
};
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