
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@uppercod/exp-route
Advanced tools
exp-route, designed to compare routes on the client based on simple expressions
Path expression syntax for capturing parameters.
npm install @uppercod/exp-route
/folder1/folrder2
/folder1/{folder}
/folder1/[folder]
/folder1/[...folder]
/folder1/{...folder}
declare module "@uppercod/exp-route" {
export interface Params {
[param: string]: string;
}
export type Match<T = Params> = (path: string) => T | undefined;
/**
* Separate the pathname from the search
* @example
* "/before?after" = ["/before","?after"]
*/
export function getParts(path: string): [string, string];
/**
* Capture the search parameters of a string that begins with the character `?`
* @example
* "?id=10"
* @param search
* @param master - Object to be used to store the captured indices
*/
export function searchParams<T = Params>(
search: string,
master?: Params
): T;
/**
* Create a callback to compare the route expression with the given route
*/
export function createMatch<T = Params>(path: string): Match<T>;
}
FAQs
exp-route, designed to compare routes on the client based on simple expressions
The npm package @uppercod/exp-route receives a total of 4,535 weekly downloads. As such, @uppercod/exp-route popularity was classified as popular.
We found that @uppercod/exp-route 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.