Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
litmus-test
Advanced tools
Run Litmus Tests directly from the command line using Node.
A work in progress :(
$ npm install litmus-test
Note: This will need to be npm link
ed for now.
TODO: Use a local package.json file.
$ cp config.example.json config.json
And update the settings however you like.
Pipe a file at it:
$ cat path/to/email.html | litmus-test -d test/dir
PENDING: Or use a Node.js stream:
var fs = require('fs')
, LitmusTest = require('./lib/litmus-test')
;
fs.createReadStream('foo/bar.html')
.pipe(new LitmusTest)
;
Thankfully, commander
provides us with a command-line help:
$ litmus-test -h
Usage: litmus-test [options]
Options:
-h, --help output usage information
-V, --version output the version number
-t, --testId <n> test id for re-testing emails
-i, --imageDir [value] images file path
-f, --htmlFile [value] html email file to test
-d, --dir [value] set s3 directory to upload assets in bucket
-l, --list retrieve list of tests from litmus api
$ litmus-test -l
$ cat path/to/email.html | litmus-test -t TEST_ID
PENDING: within Node.js, it is possible to create-or-retest:
var fs = require('fs')
, LitmusTest = require('./lib/litmus-test')
;
fs.createReadStream('foo/bar.html')
.pipe(new LitmusTest({ testId: TEST_ID }))
;
FAQs
Run Litmus Tests directly from the command line using Node.
We found that litmus-test demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.