text: /**
  * @license Apache-2.0
  *
  * Copyright (c) 2021 The Stdlib Authors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *    http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
  
  'use strict';
  
  /**
  * Get a user's rate limit status.
  *
  * @module @stdlib/_tools/github/user-rate-limit
  *
  * @example
  * var ratelimit = require( '@stdlib/_tools/github/user-rate-limit' );
  *
  * var opts = {
  *     'token': 'tkjorjk34ek3nj4!'
  * };
  *
  * ratelimit( opts, clbk );
  *
  * function clbk( error, status ) {
  *     if ( error ) {
  *         throw new Error( error.message );
  *     }
  *     console.dir( status );
  *     /*
  *         {
  *             "core": {
  *                 "limit": 5000,
  *                 "remaining": 4999,
  *                 "reset": 1372700873 // UTC seconds
  *             },
  *             "search": {
  *                 "limit": 30,
  *                 "remaining": 18,
  *                 "reset": 1372697452 // UTC seconds
  *             }
  *         }
  *     *\/
  * }
  */
  
  // MODULES //
  
  var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
  var ratelimit = require( './main.js' );
  var factory = require( './factory.js' );
  
  
  // MAIN //
  
  setReadOnly( ratelimit, 'factory', factory );
  
  
  // EXPORTS //
  
  module.exports = ratelimit;
  