
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
myanmar-sort
Advanced tools
Sorting Myanmar / Burmese text is hard! This uses a big JSON tree to help you quickly sort in Node.js
If you are sorting names on server or client, use the myanmar-names library instead! It will remove prefixes before passing them to this module.
If you are on the client-side, don't load this huge library! Use new Intl.Collator("my-MM") instead!
Node.js only (expect long download time)
npm install myanmar-sort
var myanmarSort = require("myanmar-sort");
place1 = 'ရခိုင်ပြည်နယ်';
place2 = 'ရန်ကုန်တိုင်းဒေသကြီး';
place3 = 'ရှမ်းပြည်နယ်';
[place1, place2, place3].sort(myanmarSort);
You can also pass a function to retrieve the text that you sort by:
states = [
{ name: 'ရခိုင်ပြည်နယ်' },
{ name: 'ချင်းပြည်နယ်' },
{ name: 'ရှမ်းပြည်နယ်' }
];
states.sort(myanmarSort(function (state) {
return state.name;
}));
The JSON tree isn't complete! Please let me know if you find bugs, and add mocha tests to test/index.js
Open source under an MIT license
FAQs
Sort Myanmar / Burmese words
The npm package myanmar-sort receives a total of 3 weekly downloads. As such, myanmar-sort popularity was classified as not popular.
We found that myanmar-sort demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.