Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@googlicius/build-url
Advanced tools
Readme
A helper to build url with query params as easy way. Helpful when your application routing or state management based on URL query params.
npm install @googlicius/build-url
Or Yarn:
yarn add @googlicius/buil-url
import buildUrl from '@googlicius/build-url';
buildUrl('http://my-website.com/post', {
queryParams: {
page: 2,
},
});
// Output: http://my-website.com/post?page=2
Add another query param
buildUrl('http://my-website.com/post?page=2', {
queryParams: {
sort: 'title:asc',
},
});
// Output: http://my-website.com/post?page=2&sort=title%3Aasc
Input url/path is omitted
buildUrl({
queryParams: {
sort: 'title:asc',
},
});
// Output: /?sort=title%3Aasc
Remove a query param
buildUrl('images?page=2&sort=title:asc', {
queryParams: {
page: null,
},
});
// Output: /images?sort=title%3Aasc
Always returns absolute url
// Assume that current url is: http://awesome-website.com
buildUrl('/posts', {
returnAbsoluteUrl: true,
queryParams: {
page: 2,
},
});
// Output: http://awesome-website.com/posts?page=2
MIT
FAQs
Build url helper
The npm package @googlicius/build-url receives a total of 418 weekly downloads. As such, @googlicius/build-url popularity was classified as not popular.
We found that @googlicius/build-url 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.