🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

siapa

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

siapa

A simple script for parsing malay names into individual parts of the name.

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

siapa Build Status

Malay Name Parser: A simple script for parsing complex Malay names into their individual components.

Parses Malay names into 5 components:

  • Title
  • First name
  • Middle names
  • Last names
  • Suffixes

Quick start

Install: npm install siapa

An example:

var siapa = require('siapa');
var name = siapa.parse('Dato\' Ir. Dr. Hariadi Hinta')
console.log(name.title, name.first, name.suffixes, name.middle_names, name.last_names)

Contributing

For linting and testing this project uses Grunt ~0.4.1, but Grunt is not required to use this parser. Check out the Getting Started guide to learn more about Grunt.

  • git clone https://github.com/hariadi/siapa.git
  • cd siapa && npm install
  • grunt

Thank you.

Credit

Many of these name parser logic come from the following repos:

Release History

  • 2013-11-16 v0.1.2 Add more salutations test
  • 2013-06-29 v0.1.1 Add test
  • 2013-05-09 v0.1.0 First commit

Keywords

malay

FAQs

Package last updated on 07 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts