
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
sp-fe-func
Advanced tools
Common Function for Dev.
npm install --save sp-fe-func
// or yarn add sp-fe-func
<script src="https://unpkg.com/sp-fe-func/index.min.js"></script>
<script>
__FUNC.serviceAPI(options = {
url: '/',
method: 'get',
data: {},
success: function () {},
fail: function () {},
headers: {}
});
__FUNC.serviceAPI({url: 'http://test.com/test.json'})
</script>
//__FUNC: {serviceAPI}
const __FUNC = require('sp-fe-func')
Based on axios.
serviceAPI (options = {})
[url]: /[method]: get, post[data]: {keyword: 'test'}[success]: function (res) { console.log(res) }[fail]: function (err) { console.log(err) } __FUNC.serviceAPI({
url: 'http://test.com/test.json',
success: (res) => {
console.log(res)
}
})
MIT
FAQs
Common Functions for Url, Validate, Ajax etc
The npm package sp-fe-func receives a total of 0 weekly downloads. As such, sp-fe-func popularity was classified as not popular.
We found that sp-fe-func 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.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.