Skip to content

Commit 92d6d25

Browse files
committed
Initial commit
0 parents  commit 92d6d25

File tree

14 files changed

+435
-0
lines changed

14 files changed

+435
-0
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.{json,html,svg,css,remarkrc,eslintrc}]
12+
indent_size = 2
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
coverage/
2+
example.js
3+
unist-util-generated.js
4+
unist-util-generated.min.js

.eslintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "eslint:recommended",
3+
"rules": {
4+
"quotes": [2, "single"]
5+
}
6+
}

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_Store
2+
*.log
3+
coverage/
4+
node_modules/
5+
unist-util-generated.js
6+
unist-util-generated.min.js

.jscs.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"excludeFiles": [
3+
"coverage/",
4+
"node_modules/",
5+
"unist-util-generated.js",
6+
"unist-util-generated.min.js"
7+
],
8+
"preset": "crockford",
9+
"requireMultipleVarDecl": false,
10+
"disallowDanglingUnderscores": false,
11+
"requireQuotedKeysInObjects": true,
12+
"disallowKeywords": [
13+
"with"
14+
],
15+
"maximumLineLength": {
16+
"value": 79,
17+
"allExcept": [
18+
"regex",
19+
"urlComments"
20+
]
21+
},
22+
"jsDoc": {
23+
"checkAnnotations": "jsdoc3",
24+
"checkParamExistence": true,
25+
"checkParamNames": true,
26+
"checkRedundantAccess": true,
27+
"checkRedundantParams": true,
28+
"checkRedundantReturns": true,
29+
"checkReturnTypes": true,
30+
"checkTypes": "strictNativeCase",
31+
"enforceExistence": true,
32+
"requireHyphenBeforeDescription": true,
33+
"requireNewlineAfterDescription": true,
34+
"requireParamDescription": true,
35+
"requireParamTypes": true,
36+
"requireReturnDescription": true,
37+
"requireReturnTypes": true
38+
}
39+
}

.remarkrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"output": true,
3+
"plugins": [
4+
"lint",
5+
"github",
6+
"comment-config",
7+
"usage"
8+
],
9+
"settings": {
10+
"bullet": "*"
11+
}
12+
}

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
deploy:
2+
- provider: npm
3+
4+
api_key:
5+
secure: HugL7fzYscvXKhhvisloDFA407xQB8fOOysJXpBqHx589jpcCmuxR7A1RgnzxFlxgk7v/u7B67C0UEbv2ETwD1A/wxX3wSRVBTpSDhgkl9BB8mZX0Fq+DcfcqYd+B8uVTE2xfdPcBYDtFerbXpLGGqL/ugrunqisyYZTHFOMAkyBkIhXap7KWmnJKHxyDfML5l8OyKe6aaK+0RSrXh8u5D4giurLWvLjmJjBsUq87niiujdoRr9J5p+tzTsTbzM3ryYoZ8Js1p7hG6yuMK6/3Lm1XlaCCivy8eymI5/ytngmu3p8zpOxtG3uprSNT2IiJ6jZpoAXPyqKprj++zrYcEm+kd+5B8XxtN9QpaGon5B9Lr3Aj4617iS8jzYhP2dJKg34i8hw8rfBXv48Uv5gIEbH+Z7kkez60atNuPnJFOqfnJelxNDz+IaJh3d5uLx0ygVRYAXKINkV7UhzHsAvcAoIgafylI22TRso7EiQgCAz8TTI/t7C9L9idSIjXdW2RFAXCjtdzsnlHq+xISupC79QrjI3OE1UBJnGuEL9YMzsSu3tOWxKt3/QwKGxGt9L1qx4hi2yyYK9kkclLEzxALaF1tqsSzm32RH93dQovwsNiV+eCdYmOKrfmibN5GhNDBDsRDdnkkjmC/jfMgATEQNyZ5BZhRNgcNvunJ17b3Y=
6+
on:
7+
tags: true
8+
node: '5.0'
9+
- provider: releases
10+
api_key:
11+
secure: bc/mWTXNG9ffRJcixXTjOiVgxcpDijMgLGaph2kOUZtzmAeKZIViaqxjVIbISodQWJPM4JiROEa2Tou3j0gCvIvIonMOkPuXG186MHI8Wp5gGahex3orC4uiuAimiiLFbzz/jH6LAeE8CccBGecWoZh0jEb0akKWWR3R4bh0uegPIQe0tnbWaA7oR+RjUpaorfQSIETYnDUdvQUK94sA+BkEDtGom2McaPPQZW/1ecj82FQdhMqQdcVVQtq/jpypj3hZsuFJBaJDZbY1ZBBq7D5G2PXreHSTUVVISXcjvaQRxtQvnQrrW3V9mY6Ro03sEnk39QAONz6IPc9C3VKBabLa2Og0CKRFmgVNiZJ+axrbPh457ARAgH0Q9W3oqEuYgsuVQEDDZBWlvjkr0RL7daKJLacGAeLw0mETewonv6ODt+ZWsWnc10Lg8y0TrKGUb+pJmqJ8YX9ytTdiPkADkm9g/2xUky7WRu69xvZN3k/wSRmCnNN4v9yAIfGc9qhYFISVo6NUjMWxCkfcpB2up2pCuTonP8aamhVPuwbBU8T+04vYLZ1n/Va8yMKmBNx+2o93n5XyD0R3Z1HVIWJE9l5CCuJKYzynMUEE3Q5Ycn2KbDKrS/5ozifbH3gB1ZjC12YlO+NZqek6upiDqfWcB4njtdqMkEVDwMUcLD2DEHU=
12+
file:
13+
- "unist-util-generated.js"
14+
- "unist-util-generated.min.js"
15+
on:
16+
tags: true

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
(The MIT License)
2+
3+
Copyright (c) 2016 Titus Wormer <[email protected]>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
'Software'), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

example.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Dependencies:
2+
var generated = require('./index.js');
3+
4+
// Checks:
5+
var a = generated({});
6+
7+
var b = generated({
8+
'position': {
9+
'start': {},
10+
'end': {}
11+
}
12+
});
13+
14+
var c = generated({
15+
'position': {
16+
'start': {
17+
'line': 1,
18+
'column': 1
19+
},
20+
'end': {
21+
'line': 1,
22+
'column': 2
23+
}
24+
}
25+
});
26+
27+
// Yields:
28+
console.log('txt', ['a: ' + a, 'b: ' + b, 'c: ' + c].join('\n'));

history.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!--remark setext-->
2+
3+
<!--lint disable no-multiple-toplevel-headings-->
4+
5+
0.0.0 / 2016-04-15
6+
==================

0 commit comments

Comments
 (0)