File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
_tools/github/create-repo/lib Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 2727* var createRepo = require( '@stdlib/_tools/github/create-repo' );
2828*
2929* var opts = {
30- * 'token': 'tkjorjk34ek3nj4! '
30+ * 'token': 'YOUR_GITHUB_TOKEN '
3131* };
3232*
3333* createRepo( 'gamma', opts, clbk );
4040* console.error( 'Reset: %s', (new Date( info.reset*1000 )).toISOString() );
4141* }
4242* if ( error ) {
43- * throw new Error( error.message );
43+ * console.error( error.message );
44+ * } else {
45+ * console.log( JSON.stringify( repo ) );
46+ * // returns <repo_data>
4447* }
45- * console.log( JSON.stringify( repo ) );
46- * // returns <repo_data>
4748* }
4849*/
4950
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ var readDir = require( '@stdlib/fs/read-dir' ).sync;
2727var startsWith = require ( '@stdlib/string/starts-with' ) ;
2828var extname = require ( '@stdlib/utils/extname' ) ;
2929var cwd = require ( '@stdlib/process/cwd' ) ;
30- var indexRegExp = require ( './regexp_index.js' ) ; // eslint-disable-line stdlib/no-require-index
30+ var indexRegExp = require ( './regexp_index.js' ) ;
3131var relativePathRegExp = require ( './regexp_relative_require_path.js' ) ;
3232var pathRegExp = require ( './regexp_path.js' ) ;
3333var contains = require ( './contains.js' ) ;
You can’t perform that action at this time.
0 commit comments