Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upDocument/add programmatic use? #60
Comments
This comment has been minimized.
This comment has been minimized.
|
For example, it would be great to have some kind of interface that lets me pass in a file or string to standard, and get back an array of error objects or something. Right now there is a runner that uses spawn: https://github.com/maxogden/standard-format/blob/master/test/standard-runner.js |
bcomnes
changed the title
Document programmatic use?
Document/add programmatic use?
Mar 10, 2015
This comment has been minimized.
This comment has been minimized.
|
There is some documentation here: https://github.com/feross/standard/blob/master/index.js#L37-L47 Right now Also, PRs welcome! |
This comment has been minimized.
This comment has been minimized.
|
I'll see what I can do sometime soon. |
This comment has been minimized.
This comment has been minimized.
|
If you get this done in the next day or two, we can include this in the v3.0.0 release. |
This comment has been minimized.
This comment has been minimized.
|
I'm going to try and look at it in the morning tomorrow. Don't wait around for me though ;) Bret Comnes
|
This comment has been minimized.
This comment has been minimized.
|
I have checking of strings working in jscs here: https://github.com/bcomnes/standard/blob/dev/lib/checkString.js Ill try for eslint tomorrow. |
This comment has been minimized.
This comment has been minimized.
|
Arg... getting distracted over here. I think im going to finish up https://github.com/bcomnes/sublime-standard-format before I can get to this issue so please dont wait for me. |
feross
added a commit
that referenced
this issue
Mar 19, 2015
feross
self-assigned this
Mar 19, 2015
feross
added a commit
that referenced
this issue
Mar 19, 2015
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Thanks maaan! Sorry I couldn't pull through on this. Will help with writing standard-format tests. |
bcomnes
closed this
Mar 19, 2015
This comment has been minimized.
This comment has been minimized.
|
No problem |
This comment has been minimized.
This comment has been minimized.
|
Let's leave this open until |
feross
reopened this
Mar 19, 2015
This comment has been minimized.
This comment has been minimized.
|
Oh derp. Good point |
feross
added a commit
that referenced
this issue
Mar 23, 2015
feross
added a commit
that referenced
this issue
Mar 23, 2015
This comment has been minimized.
This comment has been minimized.
|
This is released as 3.3.0. |
feross
added a commit
that referenced
this issue
Mar 26, 2015
feross
closed this
in
eb255c2
Mar 26, 2015
feross
added a commit
that referenced
this issue
Mar 26, 2015
This comment has been minimized.
This comment has been minimized.
|
Boo ya! |
bcomnes commentedMar 10, 2015
I'm trying to write some tests for
standard-formatand want to run standard against some strings inside the test. So far the CLI seems to be the only thing documented. It would be nice to have some documentation on how/what I can do once Irequire('standard'). I'll try to contribute some after I get my head wrapped around what is available and opening this issue in the meantime.