Skip to content

Commit

Permalink
Merge pull request #127 from steelbrain/steelbrain/cleanup-readme
Browse files Browse the repository at this point in the history
Cleanup API in README
  • Loading branch information
steelbrain committed Mar 24, 2016
2 parents a9896d2 + 457af9c commit b7b74fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,16 @@ For full documentation of `exec` and `execNode` API, please refer to [`sb-exec R

```js
export const FindCache: Map
class Helpers{
static exec(command: String, args: Array<string> = [], options: Object)
static execNode(filePath: String, args: Array<string> = [], options: Object)
static parse(data: String, regex: String, options: Object = {baseReduction: 1, flags: ""})
static rangeFromLineNumber(textEditor: TextEditor, lineNumber: Number, colStart: Number = <firstColumn>):Array
static find(directory:String, names: String | Array<string>): ?String
static findCached(directory:String, names: String | Array<string>): ?String
static findAsync(directory: String, names: String | Array<string>): Promise<?String>
static findCachedAsync(directory: String, names: String | Array<string>): Promise<?String>
static tempFile<T>(fileName:String, fileContents:String, Callback:Function<T>):Promise<T>
static tempFiles<T>(filesNames:Array<{name: String, contents: String}>, callback:Function<T>):Promise<T>
}
export function exec(command: String, args: Array<string> = [], options: Object): Promise
export function execNode(filePath: String, args: Array<string> = [], options: Object): Promise
export function parse(data: String, regex: String, options: Object = {flags: 'g'}): Array<Linter$Message>
export function rangeFromLineNumber(textEditor: TextEditor, lineNumber: Number = 0, colStart: Number = <firstTextColumn>): Array
export function find(directory: String, names: String | Array<string>): ?String
export function findCached(directory: String, names: String | Array<string>): ?String
export function findAsync(directory: String, names: String | Array<string>): Promise<?String>
export function findCachedAsync(directory: String, names: String | Array<string>): Promise<?String>
export function tempFile<T>(fileName: String, fileContents: String, callback: Function<T>): Promise<T>
export function tempFiles<T>(filesNames: Array<{ name: String, contents: String }>, callback: Function<T>): Promise<T>
```

#### License
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"devDependencies": {
"eslint": "^2.2.0",
"babel-eslint": "^5.0.0",
"babel-eslint": "6.0.0-beta.6",
"eslint-config-airbnb": "^6.0.2",
"ucompiler": "^3.0.1",
"ucompiler-plugin-babel": "^3.0.0",
Expand Down

0 comments on commit b7b74fe

Please sign in to comment.