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

javascripting

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

javascripting - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

get-file.js

2

package.json
{
"name": "javascripting",
"description": "Learn JavaScript by adventuring around in the terminal.",
"version": "1.1.1",
"version": "1.1.2",
"repository": {

@@ -6,0 +6,0 @@ "url": "git://github.com/sethvincent/javascripting.git"

@@ -1,13 +0,8 @@

var fs = require('fs');
var path = require('path');
var md = require('cli-md');
var getFile = require('../../get-file');
var run = require('../../run-solution');
exports.problem = md(
fs.readFileSync(path.join(__dirname, 'problem.md'), 'utf8')
);
exports.problem = getFile(path.join(__dirname, 'problem.md'));
exports.solution = md(
fs.readFileSync(path.join(__dirname, 'solution.md'), 'utf8')
);
exports.solution = getFile(path.join(__dirname, 'solution.md'));

@@ -14,0 +9,0 @@ exports.verify = function (args, cb) {

@@ -1,13 +0,8 @@

var fs = require('fs');
var path = require('path');
var md = require('cli-md');
var getFile = require('../../get-file');
var run = require('../../run-solution');
exports.problem = md(
fs.readFileSync(path.join(__dirname, 'problem.md'), 'utf8')
);
exports.problem = getFile(path.join(__dirname, 'problem.md'));
exports.solution = md(
fs.readFileSync(path.join(__dirname, 'solution.md'), 'utf8')
);
exports.solution = getFile(path.join(__dirname, 'solution.md'));

@@ -14,0 +9,0 @@ exports.verify = function (args, cb) {

@@ -1,13 +0,8 @@

var fs = require('fs');
var path = require('path');
var md = require('cli-md');
var getFile = require('../../get-file');
var run = require('../../run-solution');
exports.problem = md(
fs.readFileSync(path.join(__dirname, 'problem.md'), 'utf8')
);
exports.problem = getFile(path.join(__dirname, 'problem.md'));
exports.solution = md(
fs.readFileSync(path.join(__dirname, 'solution.md'), 'utf8')
);
exports.solution = getFile(path.join(__dirname, 'solution.md'));

@@ -14,0 +9,0 @@ exports.verify = function (args, cb) {

@@ -1,13 +0,8 @@

var fs = require('fs');
var path = require('path');
var md = require('cli-md');
var getFile = require('../../get-file');
var run = require('../../run-solution');
exports.problem = md(
fs.readFileSync(path.join(__dirname, 'problem.md'), 'utf8')
);
exports.problem = getFile(path.join(__dirname, 'problem.md'));
exports.solution = md(
fs.readFileSync(path.join(__dirname, 'solution.md'), 'utf8')
);
exports.solution = getFile(path.join(__dirname, 'solution.md'));

@@ -14,0 +9,0 @@ exports.verify = function (args, cb) {

@@ -1,13 +0,8 @@

var fs = require('fs');
var path = require('path');
var md = require('cli-md');
var getFile = require('../../get-file');
var run = require('../../run-solution');
exports.problem = md(
fs.readFileSync(path.join(__dirname, 'problem.md'), 'utf8')
);
exports.problem = getFile(path.join(__dirname, 'problem.md'));
exports.solution = md(
fs.readFileSync(path.join(__dirname, 'solution.md'), 'utf8')
);
exports.solution = getFile(path.join(__dirname, 'solution.md'));

@@ -14,0 +9,0 @@ exports.verify = function (args, cb) {

@@ -1,13 +0,8 @@

var fs = require('fs');
var path = require('path');
var md = require('cli-md');
var getFile = require('../../get-file');
var run = require('../../run-solution');
exports.problem = md(
fs.readFileSync(path.join(__dirname, 'problem.md'), 'utf8')
);
exports.problem = getFile(path.join(__dirname, 'problem.md'));
exports.solution = md(
fs.readFileSync(path.join(__dirname, 'solution.md'), 'utf8')
);
exports.solution = getFile(path.join(__dirname, 'solution.md'));

@@ -14,0 +9,0 @@ exports.verify = function (args, cb) {

@@ -1,13 +0,8 @@

var fs = require('fs');
var path = require('path');
var md = require('cli-md');
var getFile = require('../../get-file');
var run = require('../../run-solution');
exports.problem = md(
fs.readFileSync(path.join(__dirname, 'problem.md')).toString()
);
exports.problem = getFile(path.join(__dirname, 'problem.md'));
exports.solution = md(
fs.readFileSync(path.join(__dirname, 'solution.md')).toString()
);
exports.solution = getFile(path.join(__dirname, 'solution.md'));

@@ -14,0 +9,0 @@ exports.verify = function (args, cb) {

@@ -1,13 +0,8 @@

var fs = require('fs');
var path = require('path');
var md = require('cli-md');
var getFile = require('../../get-file');
var run = require('../../run-solution');
exports.problem = md(
fs.readFileSync(path.join(__dirname, 'problem.md'), 'utf8')
);
exports.problem = getFile(path.join(__dirname, 'problem.md'));
exports.solution = md(
fs.readFileSync(path.join(__dirname, 'solution.md'), 'utf8')
);
exports.solution = getFile(path.join(__dirname, 'solution.md'));

@@ -14,0 +9,0 @@ exports.verify = function (args, cb) {

@@ -1,13 +0,8 @@

var fs = require('fs');
var path = require('path');
var md = require('cli-md');
var getFile = require('../../get-file');
var run = require('../../run-solution');
exports.problem = md(
fs.readFileSync(path.join(__dirname, 'problem.md'), 'utf8')
);
exports.problem = getFile(path.join(__dirname, 'problem.md'));
exports.solution = md(
fs.readFileSync(path.join(__dirname, 'solution.md'), 'utf8')
);
exports.solution = getFile(path.join(__dirname, 'solution.md'));

@@ -14,0 +9,0 @@ exports.verify = function (args, cb) {

@@ -1,13 +0,8 @@

var fs = require('fs');
var path = require('path');
var md = require('cli-md');
var getFile = require('../../get-file');
var run = require('../../run-solution');
exports.problem = md(
fs.readFileSync(path.join(__dirname, 'problem.md'), 'utf8')
);
exports.problem = getFile(path.join(__dirname, 'problem.md'));
exports.solution = md(
fs.readFileSync(path.join(__dirname, 'solution.md'), 'utf8')
);
exports.solution = getFile(path.join(__dirname, 'solution.md'));

@@ -14,0 +9,0 @@ exports.verify = function (args, cb) {

@@ -1,13 +0,8 @@

var fs = require('fs');
var path = require('path');
var md = require('cli-md');
var getFile = require('../../get-file');
var run = require('../../run-solution');
exports.problem = md(
fs.readFileSync(path.join(__dirname, 'problem.md'), 'utf8')
);
exports.problem = getFile(path.join(__dirname, 'problem.md'));
exports.solution = md(
fs.readFileSync(path.join(__dirname, 'solution.md'), 'utf8')
);
exports.solution = getFile(path.join(__dirname, 'solution.md'));

@@ -14,0 +9,0 @@ exports.verify = function (args, cb) {

@@ -1,13 +0,8 @@

var fs = require('fs');
var path = require('path');
var md = require('cli-md');
var getFile = require('../../get-file');
var run = require('../../run-solution');
exports.problem = md(
fs.readFileSync(path.join(__dirname, 'problem.md'), 'utf8')
);
exports.problem = getFile(path.join(__dirname, 'problem.md'));
exports.solution = md(
fs.readFileSync(path.join(__dirname, 'solution.md'), 'utf8')
);
exports.solution = getFile(path.join(__dirname, 'solution.md'));

@@ -14,0 +9,0 @@ exports.verify = function (args, cb) {

@@ -1,13 +0,8 @@

var fs = require('fs');
var path = require('path');
var md = require('cli-md');
var getFile = require('../../get-file');
var run = require('../../run-solution');
exports.problem = md(
fs.readFileSync(path.join(__dirname, 'problem.md'), 'utf8')
);
exports.problem = getFile(path.join(__dirname, 'problem.md'));
exports.solution = md(
fs.readFileSync(path.join(__dirname, 'solution.md'), 'utf8')
);
exports.solution = getFile(path.join(__dirname, 'solution.md'));

@@ -14,0 +9,0 @@ var expected = "{ toppings: [ 'cheese', 'sauce', 'pepperoni' ],\n"

@@ -1,13 +0,8 @@

var fs = require('fs');
var path = require('path');
var md = require('cli-md');
var getFile = require('../../get-file');
var run = require('../../run-solution');
exports.problem = md(
fs.readFileSync(path.join(__dirname, 'problem.md'), 'utf8')
);
exports.problem = getFile(path.join(__dirname, 'problem.md'));
exports.solution = md(
fs.readFileSync(path.join(__dirname, 'solution.md'), 'utf8')
);
exports.solution = getFile(path.join(__dirname, 'solution.md'));

@@ -14,0 +9,0 @@ exports.verify = function (args, cb) {

@@ -1,13 +0,8 @@

var fs = require('fs');
var path = require('path');
var md = require('cli-md');
var getFile = require('../../get-file');
var run = require('../../run-solution');
exports.problem = md(
fs.readFileSync(path.join(__dirname, 'problem.md'), 'utf8')
);
exports.problem = getFile(path.join(__dirname, 'problem.md'));
exports.solution = md(
fs.readFileSync(path.join(__dirname, 'solution.md'), 'utf8')
);
exports.solution = getFile(path.join(__dirname, 'solution.md'));

@@ -14,0 +9,0 @@ exports.verify = function (args, cb) {

@@ -1,13 +0,8 @@

var fs = require('fs');
var path = require('path');
var md = require('cli-md');
var getFile = require('../../get-file');
var run = require('../../run-solution');
exports.problem = md(
fs.readFileSync(path.join(__dirname, 'problem.md'), 'utf8')
);
exports.problem = getFile(path.join(__dirname, 'problem.md'));
exports.solution = md(
fs.readFileSync(path.join(__dirname, 'solution.md'), 'utf8')
);
exports.solution = getFile(path.join(__dirname, 'solution.md'));

@@ -14,0 +9,0 @@ exports.verify = function (args, cb) {

@@ -1,13 +0,8 @@

var fs = require('fs');
var path = require('path');
var md = require('cli-md');
var getFile = require('../../get-file');
var run = require('../../run-solution');
exports.problem = md(
fs.readFileSync(path.join(__dirname, 'problem.md'), 'utf8')
);
exports.problem = getFile(path.join(__dirname, 'problem.md'));
exports.solution = md(
fs.readFileSync(path.join(__dirname, 'solution.md'), 'utf8')
);
exports.solution = getFile(path.join(__dirname, 'solution.md'));

@@ -14,0 +9,0 @@ exports.verify = function (args, cb) {

@@ -5,3 +5,3 @@ ---

You got it! The string `this is an example` has 14 characters.
You got it! The string `example string` has 14 characters.

@@ -8,0 +8,0 @@ Run `javascripting` in the console to choose the next challenge.

@@ -1,14 +0,8 @@

var fs = require('fs');
var path = require('path');
var md = require('cli-md');
var getFile = require('../../get-file');
var run = require('../../run-solution');
exports.problem = md(
fs.readFileSync(path.join(__dirname, 'problem.md'), 'utf8')
);
exports.problem = getFile(path.join(__dirname, 'problem.md'));
exports.solution = md(
fs.readFileSync(path.join(__dirname, 'solution.md'), 'utf8')
);
exports.solution = getFile(path.join(__dirname, 'solution.md'));
exports.verify = function (args, cb) {

@@ -15,0 +9,0 @@ run(args[0], function (err, result) {

@@ -1,13 +0,8 @@

var fs = require('fs');
var path = require('path');
var md = require('cli-md');
var getFile = require('../../get-file');
var run = require('../../run-solution');
exports.problem = md(
fs.readFileSync(path.join(__dirname, 'problem.md'), 'utf8')
);
exports.problem = getFile(path.join(__dirname, 'problem.md'));
exports.solution = md(
fs.readFileSync(path.join(__dirname, 'solution.md'), 'utf8')
);
exports.solution = getFile(path.join(__dirname, 'solution.md'));

@@ -14,0 +9,0 @@ exports.verify = function (args, cb) {

@@ -1,13 +0,8 @@

var fs = require('fs');
var path = require('path');
var md = require('cli-md');
var getFile = require('../../get-file');
var run = require('../../run-solution');
exports.problem = md(
fs.readFileSync(path.join(__dirname, 'problem.md'), 'utf8')
);
exports.problem = getFile(path.join(__dirname, 'problem.md'));
exports.solution = md(
fs.readFileSync(path.join(__dirname, 'solution.md'), 'utf8')
);
exports.solution = getFile(path.join(__dirname, 'solution.md'));

@@ -14,0 +9,0 @@ exports.verify = function (args, cb) {

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