npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

e-workpermit-thailand-extractor

v0.1.3

Published

Project to extract & translate employee information from Thailand Workpermit Website (https://alien13febrenewal.doe.go.th)

Downloads

4

Readme

Project to extract & translate employee information from Thailand Workpermit Website (https://alien13febrenewal.doe.go.th)

NOTE

I do translate keys of the object from TH to another language using google translage and name of the keys may change, I do encourage you to use originalInformation key.

REQUIREMENTS

Node.js ^14

INSTALLATION
npm i -g e-workpermit-thailand-extractor
USAGE
  • CLI

    e-workpermit-thailand-extractor --help
    
    e-workpermit-thailand-extractor [url] [to] --string
  • Execute CLI using programming Languages (Sample PHP Code)

    $output = json_decode(exec('e-workpermit-thailand-extractor [url] [to] --string'),true);
  • Node

    const ExtractAndTranslateContent = require('./ExtractAndTranslateContent')
    
    const information = await new ExtractAndTranslateContent(url,to).process()
SAMPLE OUTPUT IN JS OBJECT
{
  originalInformation: {
    "เลขรับที่ (No.)": "xxxxx",
    "รหัสคนต่างด้าว": "xxxxx",
    "ชื่อคนต่างด้าว (Name of Applicant)": "xxxxx",
    "วันที่ (Date)": "xxxxx",
    "นายทะเบียน (Register)": "xxxxx",
    "สถานะใบอนุญาต": "xxxxx",
    "ชื่อภาษาไทย": "xxxxx",
    "วัน/เดือน/ปี (พ.ศ.) เกิด": "xxxxx",
    "สัญชาติ": "xxxxx",
    "ชื่อ-สกุล บิดา": "xxxxx",
    "ที่อยู่อาศัย": "xxxxx",
    "ออกให้ ณ จังหวัด": "xxxxx",
    "ใบอนุญาตเลขที่": "xxxxx",
    "ชื่อภาษาอังกฤษ": "xxxxx",
    "อายุ": "xxxxx",
    "สถานภาพ": "xxxxx",
    "ชื่อ-สกุล มารดา": "xxxxx",
    "ผู้ติดตาม": "xxxxx",
    "เลขที่หนังสือเดินทาง": "xxxxx",
    "สถานที่ออกหนังสือ": "xxxxx",
    "วันที่ออกหนังสือเดินทาง": "xxxxx",
    "เลขที่ตรวจลงตรา": "xxxxx",
    "ออกให้วันที่": "xxxxx",
    "ประเภทหนังสือเดินทาง": "xxxxx",
    "ประเทศที่ออก": "xxxxx",
    "วันหมดอายุ": "xxxxx",
    "ใช้ได้ถึงวันที่": "xxxxx",
    "เลขประจำตัวนายจ้าง": "xxxxx",
    "ชื่อนายจ้าง/สถานประกอบการ": "xxxxx",
    "ประเภทกิจการ": "xxxxx",
    "ที่ตั้งสำนักงาน": "xxxxx",
    "ทำงานในตำแหน่ง": "xxxxx",
    "สถานที่ทำงาน": "xxxxx",
    "อนุญาตให้ทำงานตั้งแต่วันที่": "xxxxx",
    "ลักษณะงาน": "xxxxx",
    "ถึงวันที่": "xxxxx",
    "โรงพยาบาลที่ตรวจสุขภาพ": "xxxxx",
    "ประเภทสิทธิการรักษา": "xxxxx",
    "ระยะเวลาประกันสุขภาพ": "xxxxx",
    "โรงพยาบาล": "xxxxx",
    "วันที่หมดอายุ": "xxxxx",
    "ผู้บันทึก/แก้ไขข้อมูล": "xxxxx",
    "วันที่บันทึก/แก้ไขข้อมูล": "xxxxx"
  },
  translatedInformation: {
    "Receipt number (No.)": "xxxxx",
    "Alien ID": "xxxxx",
    "Name of Applicant": "xxxxx",
    "Date (Date)": "xxxxx",
    "Registrar (Register)": "xxxxx",
    "Permit Status": "xxxxx",
    "Thai Name": "xxxxx",
    "Day/Month/Year (B.E.) Birth": "xxxxx",
    "Nationality": "xxxxx",
    "First name-Surname Father": "xxxxx",
    "Residence": "xxxxx",
    "Issued at the province": "xxxxx",
    "License number": "xxxxx",
    "English name": "xxxxx",
    "Age": "xxxxx",
    "Status": "xxxxx",
    "First Name-Surname Mother": "xxxxx",
    "Follower": "xxxxx",
    "Passport number": "xxxxx",
    "Place of issue": "xxxxx",
    "Passport issue date": "xxxxx",
    "Visa Number": "xxxxx",
    "Issued Date": "xxxxx",
    "Passport Type": "xxxxx",
    "Country of issue ": "xxxxx",
    "Expiration date": "xxxxx",
    "Valid until": "xxxxx",
    "Employer identification number": "xxxxx",
    "Employer name /Establishment": "xxxxx",
    "Business Type": "xxxxx",
    "Office Location": "xxxxx",
    "Working position": "xxxxx",
    "Workplace": "xxxxx",
    "Allowed to work from": "xxxxx",
    "Job description": "xxxxx",
    "Up to date": "xxxxx",
    "Hospitals that were inspected Health": "xxxxx",
    "Type of treatment rights": "xxxxx",
    "Health insurance period": "xxxxx",
    "Hospital": "xxxxx",
    "Recorder/Editor": "xxxxx",
    "Date recorded/edited": "xxxxx"
  }
}
SAMPLE URL
  • https://alien13febrenewal.doe.go.th/workpermit_dopa?alien_key=xxxxxxx (Where xxxxxxx is the alien key for the workpermit) - To get this url, you will need to scan the QR code on the workpermit card