Search is not available for this dataset
id
stringlengths
1
8
text
stringlengths
72
9.81M
addition_count
int64
0
10k
commit_subject
stringlengths
0
3.7k
deletion_count
int64
0
8.43k
file_extension
stringlengths
0
32
lang
stringlengths
1
94
license
stringclasses
10 values
repo_name
stringlengths
9
59
10030250
<NME> monkey_test.rs <BEF> extern crate monkey_lib; use monkey_lib::evaluator::object::*; use monkey_lib::evaluator::*; use monkey_lib::lexer::token::*; use monkey_lib::lexer::*; use monkey_lib::parser::*; use std::fs::File; use std::io::prelude::*; fn read_file(file_path: String) -> Result<String, ::std::io::Error> ...
2
refactoring
2
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030251
<NME> mod.rs <BEF> use nom::*; pub mod ast; use crate::lexer::token::*; use crate::parser::ast::*; use nom::branch::*; use nom::bytes::complete::take; use nom::combinator::{map, opt, verify}; use nom::error::{Error, ErrorKind}; ($i: expr, $tag: expr) => ( { let (i1, t1) = try_parse!($i, take!(1)); ...
10
refactoring
10
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030252
<NME> mod.rs <BEF> pub mod builtins; pub mod environment; pub mod object; use crate::evaluator::environment::*; use crate::evaluator::object::*; use crate::parser::ast::*; use std::cell::RefCell; use std::rc::Rc; pub struct Evaluator { env: Rc<RefCell<Environment>>, } impl Default for Evaluator { fn default(...
0
hashing
1
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030253
<NME> ast.rs <BEF> pub type Program = Vec<Stmt>; #[derive(PartialEq, Debug, Clone)] pub enum Stmt { LetStmt(Ident, Expr), ReturnStmt(Expr), ExprStmt(Expr), } #[derive(PartialEq, Debug, Clone)] pub enum Expr { IdentExpr(Ident), LitExpr(Literal), PrefixExpr(Prefix, Box<Expr>), InfixExpr(Infi...
1
starting evaluator
1
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030254
<NME> monkey.rs <BEF> #![feature(box_syntax, box_patterns)] #![feature(slice_patterns, advanced_slice_patterns)] #![feature(closure_to_fn_coercion)] #[macro_use] pub mod parser; <MSG> removing slice_patterns unstable feature <DFF> @@ -1,5 +1,4 @@ #![feature(box_syntax, box_patterns)] -#![feature(slice_patterns, adv...
0
removing slice_patterns unstable feature
1
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030255
<NME> cmd.rs <BEF> #[derive(Debug)] pub enum Command { FileRead(String), RunInlineCode(String), Noop, } pub fn read_command() -> Command { let matches = clap_app!(monkey => (version: "0.5.0") (author: "Jérôme Mahuet <jerome.mahuet@gmail.com>") (about: "The Monkey programming lan...
1
vim gitignore
1
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030256
<NME> main.rs <BEF> extern crate monkey_lib; extern crate nom; extern crate rustyline; extern crate rustyline_derive; use rustyline::error::ReadlineError; use rustyline::{Config, CompletionType, Editor}; use monkey_lib::lexer::*; use nom::*; mod repl; use rustyline::highlight::{Highlighter, MatchingBracketHighlighter...
11
parser
4
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030257
<NME> mod.rs <BEF> use nom::*; pub mod ast; use crate::lexer::token::*; use crate::parser::ast::*; use nom::branch::*; use nom::bytes::complete::take; use nom::combinator::{map, opt, verify}; use nom::error::{Error, ErrorKind}; use nom::multi::many0; use nom::sequence::*; use nom::Err; use std::result::Result::*; mac...
1
evaluate functions
1
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030258
<NME> mod.rs <BEF> use nom::branch::*; use nom::bytes::complete::{tag, take}; use nom::character::complete::{alpha1, alphanumeric1, digit1, multispace0}; use nom::combinator::{map, map_res, recognize}; use nom::multi::many0; use nom::sequence::{delimited, pair}; use nom::*; use std::str; use std::str::FromStr; use std...
8
fix lexer for Ident with single char
8
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030259
<NME> cmd.rs <BEF> #[derive(Debug)] pub enum Command { FileRead(String), RunInlineCode(String), Noop, } pub fn read_command() -> Command { let matches = clap_app!(monkey => (version: "0.2.0") (author: "Jérôme Mahuet <jerome.mahuet@gmail.com>") (about: "The Monkey programming lan...
1
update deps
1
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030260
<NME> main.rs <BEF> extern crate monkey_lib; #[macro_use] extern crate clap; extern crate nom; use std::fs::File; use std::io::prelude::*; use nom::*; use monkey_lib::lexer::*; use monkey_lib::lexer::token::*; use monkey_lib::parser::*; use monkey_lib::evaluator::*; use cmd::*; mod cmd; fn read_file(file_path: Strin...
6
use function parser of nom instead of macro for parser
6
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030261
<NME> main.rs <BEF> extern crate monkey_lib; extern crate nom; extern crate rustyline; extern crate rustyline_derive; use monkey_lib::evaluator::*; use monkey_lib::lexer::token::*; use monkey_lib::lexer::*; use monkey_lib::parser::*; use nom::Err; use rustyline::completion::{Completer, FilenameCompleter, Pair}; use ru...
4
adding tests
4
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030262
<NME> object.rs <BEF> use crate::evaluator::environment::*; use crate::parser::ast::*; use std::cell::RefCell; use std::collections::HashMap; use std::fmt; use std::hash::{Hash, Hasher}; use std::rc::Rc; #[derive(Debug, Clone, PartialEq)] pub enum Object { Integer(i64), Boolean(bool), String(String), A...
1
readme
1
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030263
<NME> monkey.rs <BEF> #![feature(box_syntax, box_patterns, slice_patterns, advanced_slice_patterns)] #![feature(closure_to_fn_coercion)] #[macro_use] <MSG> upgrading to Nom 3.0 <DFF> @@ -1,4 +1,5 @@ -#![feature(box_syntax, box_patterns, slice_patterns, advanced_slice_patterns)] +#![feature(box_syntax, box_patterns)]...
2
upgrading to Nom 3.0
1
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030264
<NME> monkey_test.rs <BEF> extern crate monkey_lib; use monkey_lib::evaluator::object::*; use monkey_lib::evaluator::*; use monkey_lib::lexer::token::*; use monkey_lib::lexer::*; use monkey_lib::parser::*; use std::fs::File; use std::io::prelude::*; fn read_file(file_path: String) -> Result<String, ::std::io::Error> ...
6
rustfmt
2
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030265
<NME> main.rs <BEF> extern crate monkey_lib; #[macro_use] extern crate clap; extern crate nom; use monkey_lib::evaluator::*; use monkey_lib::lexer::token::*; use monkey_lib::lexer::*; use monkey_lib::parser::*; use nom::Err; use std::fs::File; use std::io::prelude::*; use cmd::*; mod cmd; fn read_file(file_path: Str...
1
edition 2021 + versioning
1
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030266
<NME> object.rs <BEF> use std::fmt; use std::collections::HashMap; use std::hash::{Hash, Hasher}; use std::hash::{Hash, Hasher}; use std::rc::Rc; #[derive(Debug, Clone, PartialEq)] pub enum Object { Integer(i64), Boolean(bool), String(String), Array(Vec<Object>), Hash(HashMap<Object, Object>), ...
3
fix scoping
1
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030267
<NME> CONTRIBUTORS <BEF> ADDFILE <MSG> contributors file <DFF> @@ -0,0 +1,1 @@ +Will https://github.com/zsluedem - for upgrading Nom to 7.1
1
contributors file
0
CONTRIBUTORS
bsd-3-clause
Rydgel/monkey-rust
10030268
<NME> main.rs <BEF> extern crate monkey_lib; #[macro_use] extern crate clap; extern crate nom; use monkey_lib::evaluator::*; use monkey_lib::lexer::token::*; use monkey_lib::lexer::*; use monkey_lib::parser::*; use nom::Err; use std::fs::File; use std::io::prelude::*; use crate::cmd::*; mod cmd; fn read_file(file_pa...
1
some clippy warnings
1
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030269
<NME> mod.rs <BEF> pub mod builtins; pub mod environment; pub mod object; use crate::evaluator::environment::*; use crate::evaluator::object::*; use crate::parser::ast::*; use std::cell::RefCell; use std::rc::Rc; pub struct Evaluator { env: Rc<RefCell<Environment>>, } impl Default for Evaluator { fn default(...
13
builtins
0
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030270
<NME> main.rs <BEF> extern crate monkey_lib; extern crate rustyline; extern crate nom; use rustyline::completion::FilenameCompleter; use rustyline::error::ReadlineError; use rustyline::{Config, CompletionType, Editor}; use monkey_lib::lexer::*; use monkey_lib::lexer::token::*; use monkey_lib::parser::*; use monkey_lib...
99
Fixing Rustyline
17
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030271
<NME> mod.rs <BEF> pub mod builtins; pub mod environment; pub mod object; use crate::evaluator::environment::*; use crate::evaluator::object::*; use crate::parser::ast::*; use std::cell::RefCell; use std::rc::Rc; pub struct Evaluator { env: Rc<RefCell<Environment>>, } impl Default for Evaluator { fn default(...
17
builtins
0
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030272
<NME> monkey_test.rs <BEF> extern crate monkey_lib; use monkey_lib::evaluator::object::*; use monkey_lib::evaluator::*; use monkey_lib::lexer::token::*; use monkey_lib::lexer::*; use monkey_lib::parser::*; use std::fs::File; use std::io::prelude::*; fn read_file(file_path: String) -> Result<String, ::std::io::Error> ...
2
Remove the need for most `Object` clones Making `eval`-type functions take ownership of objects allows to consume them without having to clone them
2
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030273
<NME> main.rs <BEF> extern crate monkey_lib; extern crate nom; extern crate rustyline; extern crate rustyline_derive; use monkey_lib::evaluator::*; use monkey_lib::lexer::token::*; use monkey_lib::lexer::*; use monkey_lib::parser::*; use nom::Err; use rustyline::completion::{Completer, FilenameCompleter, Pair}; use ru...
1
versioning
1
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030274
<NME> monkey_test.rs <BEF> extern crate monkey_lib; use std::fs::File; use std::io::prelude::*; use monkey_lib::lexer::*; use monkey_lib::lexer::token::*; use monkey_lib::parser::*; use monkey_lib::evaluator::object::*; use monkey_lib::evaluator::*; fn read_file(file_path: String) -> Result<String, ::std::io::Error> ...
5
clippy + format
5
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030275
<NME> monkey_test.rs <BEF> extern crate monkey_lib; use monkey_lib::evaluator::object::*; use monkey_lib::evaluator::*; use monkey_lib::lexer::token::*; use monkey_lib::lexer::*; use monkey_lib::parser::*; use std::fs::File; use std::io::prelude::*; fn read_file(file_path: String) -> Result<String, ::std::io::Error> ...
2
Merge pull request #5 from Globidev/reduce-object-cloning
2
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030276
<NME> monkey.rs <BEF> #![feature(box_syntax, box_patterns, slice_patterns, advanced_slice_patterns)] #[macro_use] extern crate nom; <MSG> start builtins <DFF> @@ -1,4 +1,5 @@ #![feature(box_syntax, box_patterns, slice_patterns, advanced_slice_patterns)] +#![feature(closure_to_fn_coercion)] #[macro_use] extern c...
1
start builtins
0
.rs
rs
bsd-3-clause
Rydgel/monkey-rust
10030277
<NME> CONTRIBUTORS <BEF> Will https://github.com/zsluedem - for upgrading Nom to 7.1 <MSG> contributors <DFF> @@ -1,1 +1,2 @@ Will https://github.com/zsluedem - for upgrading Nom to 7.1 +Guillaume Depardon https://github.com/Globidev - Remove the need for most Object clones
1
contributors
0
CONTRIBUTORS
bsd-3-clause
Rydgel/monkey-rust
10030278
<NME> LICENSE <BEF> ADDFILE <MSG> license <DFF> @@ -0,0 +1,30 @@ +Copyright (c) 2017, Jérôme Mahuet + +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must ret...
30
license
0
LICENSE
bsd-3-clause
Rydgel/monkey-rust
10030279
<NME> README.md <BEF> <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. --> [![json2md](http://i.imgur.com/uj64JFw.png)](#) # json2md [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayP...
1
fix: add backtick in readme's link element
1
.md
md
mit
IonicaBizau/json2md
10030280
<NME> README.md <BEF> <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. --> [![json2md](http://i.imgur.com/uj64JFw.png)](#) # json2md [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayP...
1
Update docs
0
.md
md
mit
IonicaBizau/json2md
10030281
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
6
fix error, when input is number
0
.js
js
mit
IonicaBizau/json2md
10030282
<NME> README.md <BEF> ADDFILE <MSG> :memo: <DFF> @@ -0,0 +1,82 @@ +# json2md [![Support this project][donate-now]][paypal-donations] +A JSON to Markdown converter. + +## Installation + +```sh +$ npm i json2md +``` + +## Example + +```js +// Dependencies +var JsonToMarkdown = require("json2md"); + +console.log(JsonToMa...
82
:memo:
0
.md
md
mit
IonicaBizau/json2md
10030283
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
61
Merge branch 'master' of github.com:IonicaBizau/json2md into docs
0
.js
js
mit
IonicaBizau/json2md
10030284
<NME> README.md <BEF> [![json2md](http://i.imgur.com/uj64JFw.png)](#) # json2md [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Version](https://img.shields.io/npm/v/json2md.svg)](https://www.npmjs.com/package/json2md)...
21
Updated docs
11
.md
md
mit
IonicaBizau/json2md
10030285
<NME> json2md.min.js <BEF> ADDFILE <MSG> Rebuild <DFF> @@ -0,0 +1,1 @@ +!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof...
1
Rebuild
0
.js
min
mit
IonicaBizau/json2md
10030286
<NME> converters.js <BEF> "use strict" const converters = module.exports = {} let generateHeader = repeat => { return (input, json2md) => { return "#".repeat(repeat) + " " + json2md(input) } } let indent = (content, spaces, ignoreFirst) => { let lines = content if (typeof content === "string...
10
Update code to match code style
14
.js
js
mit
IonicaBizau/json2md
10030287
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
10
feat: add support for task lists
0
.js
js
mit
IonicaBizau/json2md
10030288
<NME> converters.js <BEF> "use strict" const converters = module.exports = {} let generateHeader = repeat => { return (input, json2md) => { return "#".repeat(repeat) + " " + json2md(input) } } let indent = (content, spaces, ignoreFirst) => { let lines = content if (typeof content === "string...
6
JsHint fixes
6
.js
js
mit
IonicaBizau/json2md
10030289
<NME> json2md.min.js <BEF> (function (f) { if (typeof exports === "object" && typeof module !== "undefined") { module.exports = f(); } else if (typeof define === "function" && define.amd) { define([], f); } else { var g;if (typeof window !== "undefined") { g = window; ...
1
Rebuild
210
.js
min
mit
IonicaBizau/json2md
10030290
<NME> converters.js <BEF> "use strict" const converters = module.exports = {} let generateHeader = repeat => { return (input, json2md) => { return "#".repeat(repeat) + " " + json2md(input) } } let indent = (content, spaces, ignoreFirst) => { let lines = content if (typeof content === "string...
4
Fix table with more than 1 row
4
.js
js
mit
IonicaBizau/json2md
10030291
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
61
feat: add support for pretty output in table
2
.js
js
mit
IonicaBizau/json2md
10030292
<NME> index.js <BEF> "use strict" const converters = require("./converters") , indento = require("indento") /** * json2md * Converts a JSON input to markdown. * * **Supported elements** * * | Type | Element | Data ...
1
Small syntax changes
1
.js
js
mit
IonicaBizau/json2md
10030293
<NME> converters.js <BEF> "use strict" const converters = module.exports = {} let generateHeader = repeat => { return (input, json2md) => { return "#".repeat(repeat) + " " + json2md(input) } } let indent = (content, spaces, ignoreFirst) => { let lines = content if (typeof content === "string...
15
Feature: apply align option for table
1
.js
js
mit
IonicaBizau/json2md
10030294
<NME> index.js <BEF> // Dependencies var json2md = require("../lib") , tester = require("tester") ; tester.describe("json2md", test => { // Headings test.it("should support headings", function (cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1"); test.expect(json2md({ h2: "H...
85
Merge branch 'feature-table' of https://github.com/ReklatsMasters/json1md into ReklatsMasters-fix-numbers
60
.js
js
mit
IonicaBizau/json2md
10030295
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
28
Merge branch 'master' into patch-1
3
.js
js
mit
IonicaBizau/json2md
10030296
<NME> converters.js <BEF> "use strict" const converters = module.exports = {} let generateHeader = repeat => { return (input, json2md) => { return "#".repeat(repeat) + " " + json2md(input) } } let indent = (content, spaces, ignoreFirst) => { let lines = content if (typeof content === "string...
3
Handle images alt
2
.js
js
mit
IonicaBizau/json2md
10030297
<NME> README.md <BEF> <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. --> [![json2md](http://i.imgur.com/uj64JFw.png)](#) # json2md [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayP...
3
Update documentation about lists
2
.md
md
mit
IonicaBizau/json2md
10030298
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
19
trim content of table cells, to avoid them containing line breaks
0
.js
js
mit
IonicaBizau/json2md
10030299
<NME> README.md <BEF> <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. --> [![json2md](http://i.imgur.com/uj64JFw.png)](#) # json2md [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayP...
2
Updated docs
1
.md
md
mit
IonicaBizau/json2md
10030300
<NME> README.md <BEF> <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. --> [![json2md](http://i.imgur.com/uj64JFw.png)](#) ```js // Dependencies var json2md = require("json2md"); console.log(json2md([ { h1: "JSON To Markdown" } ...
5
Updated docs
3
.md
md
mit
IonicaBizau/json2md
10030301
<NME> README.md <BEF> <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. --> [![json2md](http://i.imgur.com/uj64JFw.png)](#) # json2md [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayP...
9
Updated docs
0
.md
md
mit
IonicaBizau/json2md
10030302
<NME> README.md <BEF> [![json2md](http://i.imgur.com/uj64JFw.png)](#) # json2md [![PayPal](https://img.shields.io/badge/%24-paypal-f39c12.svg)][paypal-donations] [![Version](https://img.shields.io/npm/v/json2md.svg)](https://www.npmjs.com/package/json2md) [![Downloads](https://img.shields.io/npm/dt/json2md.svg)](https...
16
Updated docs
8
.md
md
mit
IonicaBizau/json2md
10030303
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
20
Add test for emphasis text
0
.js
js
mit
IonicaBizau/json2md
10030304
<NME> converters.js <BEF> "use strict" const converters = module.exports = {} let generateHeader = repeat => { return (input, json2md) => { return "#".repeat(repeat) + " " + json2md(input) } } let indent = (content, spaces, ignoreFirst) => { let lines = content if (typeof content === "string...
0
Remove debugger line
1
.js
js
mit
IonicaBizau/json2md
10030305
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
10
support tables
0
.js
js
mit
IonicaBizau/json2md
10030306
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
15
table: rows can be an arrays
3
.js
js
mit
IonicaBizau/json2md
10030307
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
6
tests: update table test
2
.js
js
mit
IonicaBizau/json2md
10030308
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
6
Fixed tests
6
.js
js
mit
IonicaBizau/json2md
10030309
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
18
feat: add support for strike and u tags
0
.js
js
mit
IonicaBizau/json2md
10030310
<NME> .gitignore <BEF> ADDFILE <MSG> Added gitignore <DFF> @@ -0,0 +1,5 @@ +*.swp +*.swo +*~ +*.log +node_modules
5
Added gitignore
0
gitignore
mit
IonicaBizau/json2md
10030311
<NME> index.js <BEF> "use strict" const converters = require("./converters") , indento = require("indento") /** * json2md * Converts a JSON input to markdown. * * **Supported elements** * * | Type | Element | Data ...
1
docs :memo:
1
.js
js
mit
IonicaBizau/json2md
10030312
<NME> converters.js <BEF> "use strict" const converters = module.exports = {} let generateHeader = repeat => { return (input, json2md) => { return "#".repeat(repeat) + " " + json2md(input) } } let indent = (content, spaces, ignoreFirst) => { let lines = content if (typeof content === "string...
4
Add pipes to beginning and end of table rows
4
.js
js
mit
IonicaBizau/json2md
10030313
<NME> converters.js <BEF> "use strict" const converters = module.exports = {} let generateHeader = repeat => { return (input, json2md) => { return "#".repeat(repeat) + " " + json2md(input) } } let indent = (content, spaces, ignoreFirst) => { let lines = content if (typeof content === "string...
8
Syntax fixes
8
.js
js
mit
IonicaBizau/json2md
10030314
<NME> README.md <BEF> <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. --> # json2md [![Patreon](https://img.shields.io/badge/Support%20me%20on-Patreon-%23e6461a.svg)][paypal-donations] [![PayPal](https://img.shields.io/badge/%24-paypal-f39c12.svg)]...
2
Updated docs
1
.md
md
mit
IonicaBizau/json2md
10030315
<NME> index.js <BEF> "use strict" const converters = require("./converters") , indento = require("indento") /** * json2md * Converts a JSON input to markdown. * * **Supported elements** * * | Type | Element | Data ...
3
Minor improvements
3
.js
js
mit
IonicaBizau/json2md
10030316
<NME> index.js <BEF> // Dependencies var json2md = require("../lib") , Assert = require("assert") ; // Headings it("should support headings", function (cb) { Assert.equal(json2md({ h1: "Heading 1" }), "# Heading 1"); Assert.equal(json2md({ h2: "Heading 2" }), "## Heading 2"); Assert.equal(json2md({ h3:...
141
Use tester instead of mocha
139
.js
js
mit
IonicaBizau/json2md
10030317
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
11
Merge branch 'master' of https://github.com/keithhchen/json2md into new-version
0
.js
js
mit
IonicaBizau/json2md
10030318
<NME> converters.js <BEF> "use strict" const converters = module.exports = {} let generateHeader = repeat => { return (input, json2md) => { return "#".repeat(repeat) + " " + json2md(input) } } let indent = (content, spaces, ignoreFirst) => { let lines = content if (typeof content === "string...
1
Merge branch 'fix/safari-regexp' of https://github.com/shuxiaotai/json2md into new-version
1
.js
js
mit
IonicaBizau/json2md
10030319
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
118
test: add test cases for json2md.async
0
.js
js
mit
IonicaBizau/json2md
10030320
<NME> README.md <BEF> <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. --> [![json2md](http://i.imgur.com/uj64JFw.png)](#) # json2md [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayP...
1
Update README.md
1
.md
md
mit
IonicaBizau/json2md
10030321
<NME> converters.js <BEF> "use strict" const converters = module.exports = {} let generateHeader = repeat => { return (input, json2md) => { return "#".repeat(repeat) + " " + json2md(input) } } let indent = (content, spaces, ignoreFirst) => { let lines = content if (typeof content === "string...
19
Add support for emphasis formats
3
.js
js
mit
IonicaBizau/json2md
10030322
<NME> converters.js <BEF> "use strict" const converters = module.exports = {} let generateHeader = repeat => { return (input, json2md) => { return "#".repeat(repeat) + " " + json2md(input) } } let indent = (content, spaces, ignoreFirst) => { let lines = content if (typeof content === "string...
4
Define c
2
.js
js
mit
IonicaBizau/json2md
10030323
<NME> README.md <BEF> <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. --> [![json2md](http://i.imgur.com/uj64JFw.png)](#) # json2md [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayP...
1
Merge branch 'patch-1' of https://github.com/cedricdelpoux/json2md into new-version
1
.md
md
mit
IonicaBizau/json2md
10030324
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
5
Added suport to nested lists
7
.js
js
mit
IonicaBizau/json2md
10030325
<NME> index.js <BEF> ADDFILE <MSG> Added examples <DFF> @@ -0,0 +1,39 @@ +// Dependencies +var JsonToMarkdown = require("../lib"); + +console.log(JsonToMarkdown([ + { h1: "JSON To Markdown" } + , { blockquote: "A JSON to Markdown converter." } + , { img: [ + { title: "Some image", source: "https://example....
39
Added examples
0
.js
js
mit
IonicaBizau/json2md
10030326
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
118
Merge branch 'feat/async-converter' of https://github.com/adoyle-h/json2md into new-version
0
.js
js
mit
IonicaBizau/json2md
10030327
<NME> DOCUMENTATION.md <BEF> ## Documentation You can see below the API reference of this module. ### `json2md(data, prefix)` Converts a JSON input to markdown. **Supported elements** | Type | Element | Data ...
4
Updated docs
3
.md
md
mit
IonicaBizau/json2md
10030328
<NME> index.js <BEF> ADDFILE <MSG> Tests :worker: <DFF> @@ -0,0 +1,73 @@ +var JsonToMarkdown = require("../lib") + , Assert = require("assert") + ; + +// Headings +it("should support headings", function (cb) { + Assert.equal(JsonToMarkdown({ h1: "Heading 1" }), "# Heading 1"); + Assert.equal(JsonToMarkdown({ h...
73
Tests :worker:
0
.js
js
mit
IonicaBizau/json2md
10030329
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
18
Merge branch 'feature/add_align_option_for_table' of https://github.com/oahehc/json2md into new-version
4
.js
js
mit
IonicaBizau/json2md
10030330
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
11
Added test and docs for new link converter
0
.js
js
mit
IonicaBizau/json2md
10030331
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
28
Make table headers look prettier and escape "|"'s in table cells
3
.js
js
mit
IonicaBizau/json2md
10030332
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
6
Merge branch 'fix-numbers' of https://github.com/ReklatsMasters/json0md into ReklatsMasters-fix-numbers
0
.js
js
mit
IonicaBizau/json2md
10030333
<NME> converters.js <BEF> "use strict" const converters = module.exports = {} let generateHeader = repeat => { return (input, json2md) => { return "#".repeat(repeat) + " " + json2md(input) } } let indent = (content, spaces, ignoreFirst) => { let lines = content if (typeof content === "string...
10
implemented link converter: [title](source)
0
.js
js
mit
IonicaBizau/json2md
10030334
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
9
Merge branch 'master' of https://github.com/IvanWei/json2md into new-version
1
.js
js
mit
IonicaBizau/json2md
10030335
<NME> index.js <BEF> "use strict" const converters = require("./converters") , indento = require("indento") /** * json2md * Converts a JSON input to markdown. * * **Supported elements** * * | Type | Element | Data ...
2
Update supported elements doc
2
.js
js
mit
IonicaBizau/json2md
10030336
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
65
Merge branch 'master' of https://github.com/macno/json2md into new-version
2
.js
js
mit
IonicaBizau/json2md
10030337
<NME> index.js <BEF> "use strict" const converters = require("./converters") , indento = require("indento") /** * json2md * Converts a JSON input to markdown. * * **Supported elements** * * | Type | Element | Data ...
4
:memo: docs
4
.js
js
mit
IonicaBizau/json2md
10030338
<NME> converters.js <BEF> "use strict" const converters = module.exports = {} let generateHeader = repeat => { return (input, json2md) => { return "#".repeat(repeat) + " " + json2md(input) } } let indent = (content, spaces, ignoreFirst) => { let lines = content if (typeof content === "string...
1
fix: fix safari 14 throw Invalid regular expression error
1
.js
js
mit
IonicaBizau/json2md
10030339
<NME> json2md.min.js <BEF> (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}e...
208
Rebuild
196
.js
min
mit
IonicaBizau/json2md
10030340
<NME> README.md <BEF> <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. --> [![json2md](http://i.imgur.com/uj64JFw.png)](#) # json2md [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayP...
1
Merge branch 'patch-2' of https://github.com/reymon359/json2md into new-version
1
.md
md
mit
IonicaBizau/json2md
10030341
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
18
Fix: fix broken test and add table align testcase
4
.js
js
mit
IonicaBizau/json2md
10030342
<NME> json2md.min.js <BEF> (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}e...
198
Rebuild
1
.js
min
mit
IonicaBizau/json2md
10030343
<NME> index.js <BEF> "use strict" const converters = require("./converters") , indento = require("indento") /** * json2md * Converts a JSON input to markdown. * * **Supported elements** * * | Type | Element | Data ...
16
Merge pull request #67 from cedricdelpoux/patch-1
16
.js
js
mit
IonicaBizau/json2md
10030344
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
18
Merge branch 'feat/strikethrough-underline' of https://github.com/jpoehnelt/json2md into new-version
0
.js
js
mit
IonicaBizau/json2md
10030345
<NME> index.js <BEF> var JsonToMarkdown = require("../lib") , Assert = require("assert") ; // Headings it("should support headings", function (cb) { Assert.equal(JsonToMarkdown({ h1: "Heading 1" }), "# Heading 1"); Assert.equal(JsonToMarkdown({ h2: "Heading 2" }), "## Heading 2"); Assert.equal(JsonToMa...
23
Use json2md everywhere
13
.js
js
mit
IonicaBizau/json2md
10030346
<NME> converters.js <BEF> "use strict" const converters = module.exports = {} let generateHeader = repeat => { return (input, json2md) => { return "#".repeat(repeat) + " " + json2md(input) } } let indent = (content, spaces, ignoreFirst) => { let lines = content if (typeof content === "string...
6
Allow code content to be string
2
.js
js
mit
IonicaBizau/json2md
10030347
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
9
feat: add support for hr tag
1
.js
js
mit
IonicaBizau/json2md
10030348
<NME> README.md <BEF> [![json2md](http://i.imgur.com/uj64JFw.png)](#) # json2md [![PayPal](https://img.shields.io/badge/%24-paypal-f39c12.svg)][paypal-donations] [![Version](https://img.shields.io/npm/v/json2md.svg)](https://www.npmjs.com/package/json2md) [![Downloads](https://img.shields.io/npm/dt/json2md.svg)](http...
5
Updated docs
2
.md
md
mit
IonicaBizau/json2md
10030349
<NME> index.js <BEF> // Dependencies var json2md = require("../lib"), tester = require("tester"); tester.describe("json2md", test => { // Headings test.it("should support headings", function(cb) { test.expect(json2md({ h1: "Heading 1" })).toBe("# Heading 1\n"); test.expe...
28
Merge branch 'prettier-tables' of https://github.com/JannikWibker/json2md into new-version
3
.js
js
mit
IonicaBizau/json2md