1.6.15 • Published 2 years ago

sexp_builder v1.6.15

Weekly downloads
18
License
MIT
Repository
-
Last release
2 years ago

sexp_builder

Converts javascript values to s-expressions

const sb = require('sexp_builder')
const symbol = sb.symbol
const dottedPair = sb.dottedPair
const build = sb.build

var s = build([
	symbol('spec'), 
	{
		a: 1,
		b: '"two"',
		c: [1, "TWO", [3, 3, 3]],
		d: {
			A: dottedPair("me", "AAA"),
			B: dottedPair(symbol("you"), "BBB"),
		},
	},
])

console.log(s) // (spec (assoc (("a" . 1) ("b" . "\"two\"") ("c" . (1 "TWO" (3 3 3))) ("d" . (assoc (("A" . ("me" . "AAA")) ("B" . (you . "BBB"))))))))
1.6.15

2 years ago

1.6.13

3 years ago

1.6.12

3 years ago

1.6.11

3 years ago

1.6.9

4 years ago

1.6.10

4 years ago

1.6.8

4 years ago

1.6.7

4 years ago

1.6.6

5 years ago

1.6.5

5 years ago

1.6.4

5 years ago

1.6.3

5 years ago

1.6.2

5 years ago

1.6.1

5 years ago

1.6.0

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago