JSPM

  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q68328F
  • License MIT

Utils

Package Exports

  • jwz
  • jwz/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jwz) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Function

GitHub

buildGitHubRepo

  • usage
    import { buildGitHubRepo } from 'jwz';
    
    /*
        @param org = String
        @param repo = String
        @param vis = String
        @param token = String
    */
    
    const org = 'your-org-name';
    var repo = 'your-repo-name';
    const token = 'your-token';
    var vis = 'public';
    
    const res = await buildGitHubRepo(org, repo, vis, token);
    
    console.log(res);

inviteGitHubCollaborators

  • usage
    import { inviteGitHubCollaborators } from "jwz";
    
    /*
        @param org = String
        @param repo = String
        @param collaborators = array
        @param token = String
    */
    
    const org = 'your-org-name';
    var repo = 'your-repo-name';
    var collaborators = ['collaboratorA', 'collaboratorB']
    const token = 'your-token';
    
    inviteGitHubCollaborators(org, repo, collaborators, token);
  • note
    • when code is running it will have output of result