@bellpetchpol/thailand-billpayment-txt-to-object
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Installation

npm i @bellpetchpol/thailand-billpayment-txt-to-object

Example

import { b256 } from '@bellpetchpol/thailand-billpayment-txt-to-object'
var textReadFromFile // Should read input file
console.log(b256(textReadFromFile, true))

// you can adjust carriage return digit the default value is 1
// you might need this when read text file from ISO8859-11 encoding
console.log(b256(textReadFromFile, true, 2))

Example 2 read text file with multiple date (recommended) you won't need to worry about carriage return any more

import { b256MultipleDays } from '@bellpetchpol/thailand-billpayment-txt-to-object'
var textReadFromFile // Should read input file
console.log(b256MultipleDays(textReadFromFile, true))

Functions

name description
b256 สำหรับ text file ที่ข้อมูลแต่ละส่วนมีจำนวนตัวอักษร 256 ตัว
b450 สำหรับ text file ที่ข้อมูลแต่ละส่วนมีจำนวนตัวอักษร 450 ตัว
b256MultipleDays สำหรับ text file ที่ข้อมูลแต่ละส่วนมีจำนวนตัวอักษร 256 ตัว และมีข้อมูลหลายวันในไฟล์เดียว

Package Sidebar

Install

npm i @bellpetchpol/thailand-billpayment-txt-to-object

Weekly Downloads

24

Version

1.0.0

License

MIT

Unpacked Size

46.7 kB

Total Files

26

Last publish

Collaborators

  • bellpetchpol