title: how to require only first 6 numbers from body, nodejs
body: <p>my second question , currently its sending the entire number, while the api requires just the first six, how do i take only the first six, sorry am really new to node but liking it</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>unirest.get(`https://bins.payout.com/api/v1/bins/${req.body.card_number}`).end((resp) =&gt; {
              if(resp.body === undefined) return res.json({});
              if(resp.body.err) console.log(resp.body.err);
              res.json(resp.body);</code></pre>
  </div>
  </div>
  </p>