Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
一个函数库,包含一些常用函数。
npm install OarsJS
import oars from oarsjs
oars.foo()
<script src="https://unpkg.com/oarsjs/dist/oars.js"></script>
<script>
this.oars.foo()
</script>
将对象序列化为查询字符串
let obj = {
name:'foo',
age:23
}
oars.build_query(obj) //return 'name=foo&age=23'
常用正则表达式,包含邮箱、手机号等的判断
//第一个参数传入需要判断的规则,第二个参数传入需要判断的数据
oars.reg('email','example@foo.com'); //return true
oars.reg('phone','1122uujjj'); //return false
oars.reg('ip','192.168.10.1'); // return true
所有支持的规则
FAQs
a JavaScript function lib
The npm package oarsjs receives a total of 1 weekly downloads. As such, oarsjs popularity was classified as not popular.
We found that oarsjs 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.