New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bahttext

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bahttext - npm Package Compare versions

Comparing version 1.1.0 to 2.0.0

.github/workflows/continuous-integration.yml

32

package.json
{
"name": "bahttext",
"version": "1.1.0",
"version": "2.0.0",
"description": "Change number to Thai pronunciation string",

@@ -11,6 +11,4 @@ "main": "src/index.js",

"coverage.check": "jest --coverage",
"coverage.report": "cat ./coverage/lcov.info | codecov",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"standard": "standard",
"validate": "npm run standard && npm run coverage.check"
"semantic-release": "semantic-release",
"standard": "standard"
},

@@ -41,10 +39,8 @@ "config": {

"devDependencies": {
"codecov": "^2.3.0",
"commitizen": "2.8.5",
"cz-conventional-changelog": "1.1.6",
"ghooks": "1.3.2",
"jest": "^21.0.1",
"npm-run-all": "2.3.0",
"semantic-release": "^7.0.2",
"standard": "^10.0.3"
"commitizen": "4.2.2",
"cz-conventional-changelog": "3.3.0",
"ghooks": "2.0.4",
"jest": "^26.6.1",
"semantic-release": "^17.2.1",
"standard": "^15.0.0"
},

@@ -58,6 +54,6 @@ "jest": {

"global": {
"branches": 60,
"functions": 60,
"lines": 60,
"statements": 60
"branches": 80,
"functions": 80,
"lines": 80,
"statements": 80
}

@@ -70,2 +66,2 @@ }

}
}
}

@@ -7,19 +7,28 @@ # bahttext

[![License - npm](https://img.shields.io/npm/l/bahttext.svg)](http://opensource.org/licenses/MIT)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release) [![Greenkeeper badge](https://badges.greenkeeper.io/jojoee/bahttext.svg)](https://greenkeeper.io/)
Change number to Thai pronunciation string, test against [Microsoft Office's BAHTTEXT function](https://support.office.com/en-us/article/BAHTTEXT-function-5ba4d0b4-abd3-4325-8d22-7a92d59aab9c), [Demo page](https://jojoee.github.io/bahttext/)
ภาษา: [ไทย](https://github.com/jojoee/bahttext/blob/master/README.md), [English](https://github.com/jojoee/bahttext/blob/master/README-en.md)
## Installation
เปลี่ยนตัวเลข เป็นคำอ่านภาษาไทย, โมดูลตัวนี้ได้ทำการทดสอบกับ [Microsoft Office's BAHTTEXT function](https://support.office.com/en-us/article/BAHTTEXT-function-5ba4d0b4-abd3-4325-8d22-7a92d59aab9c), [Demo page](https://jojoee.github.io/bahttext/) เรียบร้อยแล้ว
## ติดตั้ง
```
// npm
// ติดตั้งด้วย CommonJS
npm install bahttext
const bahttext = require('bahttext')
const { bahttext } = require('bahttext')
// Bower
// ติดตั้งด้วย Bower
bower install bahttext
<script src="bower_components/bahttext/src/index.js"></script>
// ติดตั้งด้วย githack
<script src="https://raw.githack.com/jojoee/bahttext/master/src/index.js"></script>
// ติดตั้งด้วย ES6
npm install bahttext
import { bahttext } from "bahttext"
```
## Example usage
## ตัวอย่างการใช้งาน

@@ -31,13 +40,12 @@ ```javascript

## Note
- [x] Compatible with all browsers
- [x] Unit test
- [ ] Browser compatibility test
- [ ] Remove duplication between test code and test-case-csv file
- [x] [Demo page](https://jojoee.github.io/bahttext/)
- [ ] Support negative number
- [ ] Automatically generate `misc/test.json` from `xlsx` file
- [ ] Lint on `index.html`
## ฟีเจอร์
- [x] สามารถใช้งานได้ทุก เบราว์เซอร์
- [x] ทำการทดสอบแบบ unit test
- [ ] ทดสอบบนเบราว์เซอร์ ในแต่ละ เวอร์ชั่น
- [ ] ลดการซ้ำซ้อนของการเขียน ระหว่าง code และ ไฟล์ csv ในการทำการทดสอบ
- [x] [หน้าตัวอย่างการใช้งาน](https://jojoee.github.io/bahttext/)
- [ ] สนับสนุนการใช้งานกับตัวเลขติดลบ
- [ ] แก้ไข semantic-release
## Contribute for owner
## ร่วมพัฒนา

@@ -51,4 +59,4 @@ ```

## Reference
## อ้างอิง
- [Microsoft Office's BAHTTEXT function](https://support.office.com/en-us/article/BAHTTEXT-function-5ba4d0b4-abd3-4325-8d22-7a92d59aab9c)
- Inspired by [earthchie/BAHTTEXT.js](https://github.com/earthchie/BAHTTEXT.js)
- แรงบัลดาลใจจาก [earthchie/BAHTTEXT.js](https://github.com/earthchie/BAHTTEXT.js)

@@ -153,3 +153,5 @@ /*

module.exports != null) {
module.exports = bahttext
module.exports = {
bahttext
}
}

@@ -1,2 +0,2 @@

const bahttext = require('./index')
const { bahttext } = require('./index')
const defaultResult = 'ศูนย์บาทถ้วน'

@@ -86,2 +86,3 @@ jest.autoMockOff()

test('16 digits, more than Number.MAX_SAFE_INTEGER', () => {
// eslint-disable-next-line
expect(bahttext(9007199254750991)).toBe(defaultResult)

@@ -88,0 +89,0 @@ })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc