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

literate-jasmine

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

literate-jasmine - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "literate-jasmine",
"description": "write tests in markdown that are parsed to specification files to run with jasmine-node",
"version": "0.0.2",
"version": "0.0.3",
"bin": {

@@ -6,0 +6,0 @@ "literate-jasmine": "./bin/literate-jasmine"

@@ -10,14 +10,22 @@ # literate-jasmine [![Build Status](https://travis-ci.org/cymen/literate-jasmine.png?branch=master)](https://travis-ci.org/cymen/literate-jasmine)

Below I've added this markdown structure (which includes the main header above):
This README.md has this markdown structure (which includes the main header above):
literate-jasmine
Mathematices (level 2 header)
add can add numbers (level 3 header)
code blocks which can be interspersed with comments
add can add numbers
Strings
appending works with +
# literate-jasmine
## Mathematices
### add can add numbers (level 3 header)
### add can add numbers
## Strings
### appending works with +
This will be parsed to:
Which is parsed into a tree:
literate-jasmine
Mathematices
add can add numbers (level 3 header)
add can add numbers
Strings
appending works with +
Which is then written to disk as `FILENAME_spec.js` (so `README_spec.js`):
describe('literate-jasmine', function() {

@@ -39,8 +47,8 @@ describe('Mathematics', function() {

To actually do the parsing (assuming you ran `npm install -g literate-jasmine`):
The command `literate-jasmine` is used to convert the markdown to JavaScript
(assuming you ran `npm install -g literate-jasmine`):
literate-jasmine README.md
Which will create README_spec.js with the parsed contents. If you're working on
this project, simply run ./bin/literate-jasmine instead.
(If you're working on this project, run `./bin/literate-jasmine` instead.)

@@ -47,0 +55,0 @@ ## Mathematics

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