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

browserify-adventure

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify-adventure - npm Package Compare versions

Comparing version 1.7.5 to 1.7.6

2

package.json
{
"name": "browserify-adventure",
"version": "1.7.5",
"version": "1.7.6",
"description": "learn browserify with this educational adventure",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,12 +0,16 @@

Building upon the previous "using transforms" second, write a custom
Building upon the previous "using transforms" section, write a custom
browserify transform so that in main.js you can simply do:
var txt = require('$WAKE_FILE');
var txt = require('./wake.txt');
console.log(txt);
and the `txt` output will be formatted with the proper line-numbering as
from the previous level: printf("%3d %s", lineNum, line) every 5th line
from the previous level: printf("%3d %s", lineNum, line) every 5th line,
line numbers starting from zero and four leading spaces on the other
lines.
You'll first need to copy wake.txt to your local directory:
cp $WAKE_FILE .
You will need to factor out your formatting code to be a node transform

@@ -13,0 +17,0 @@ stream, which you can learn more about in the stream-adventure nodeschool

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