Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including exchanges-rfb with all npm packages installed. Try it out:

var exchangesRfb = require("exchanges-rfb")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

exchanges-rfb v0.1.9

Lib to format data to IN 1888 from Receita Federal do Brasil.

Exchanges RFB

Lib to format data to IN 1888 from Receita Federal do Brasil.

Installing

YARN

  • Command: yarn add exchanges-rfb

NPM

  • Command: npm install exchanges-rfb --save

Usage Example

import Exchange from "exchanges-rfb"

const MyEx = new Exchange({
  exchange_name: "BiscointEx",
  exchange_cnpj: "17.869.530/0001-73",
  exchange_url: "https://testex.biscoint.io"
})

MyEx.addBuySellOperation({
  date,
  id,
  brl_value,
  brl_fees,
  coin_symbol,
  coin_quantity,
  buyer_identity_type,
  buyer_country,
  buyer_document,
  buyer_fullname,
  buyer_address,
  seller_identity_type,
  seller_country,
  seller_document,
  seller_fullname,
  seller_address
})

console.log(MyEx.exportFile())

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free