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

litmus-test

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

litmus-test

Run Litmus Tests directly from the command line using Node.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Litmus Test

Run Litmus Tests directly from the command line using Node.

A work in progress :(

Install

$ npm install litmus-test

Note: This will need to be npm linked for now.

Configure

TODO: Use a local package.json file.

$ cp config.example.json config.json

And update the settings however you like.

Quick start

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)
;

Help

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

API integration

List tests

$ litmus-test -l

Re-test

$ 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

Package last updated on 07 Nov 2013

Did you know?

Socket

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.

Install

Related posts

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