Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/slug

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/slug - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

14

slug/index.d.ts

@@ -28,12 +28,12 @@ // Type definitions for slug 5.0

interface Mode {
charmap?: CharMap | null;
lower?: boolean | null;
multicharmap?: CharMap | null;
remove?: RegExp | null;
replacement?: string | null;
symbols?: boolean | null;
charmap?: CharMap | null | undefined;
lower?: boolean | null | undefined;
multicharmap?: CharMap | null | undefined;
remove?: RegExp | null | undefined;
replacement?: string | null | undefined;
symbols?: boolean | null | undefined;
}
type Options = {
locale?: string;
locale?: string | undefined;
} & Partial<Mode>;

@@ -40,0 +40,0 @@

{
"name": "@types/slug",
"version": "5.0.0",
"version": "5.0.1",
"description": "TypeScript definitions for slug",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/slug",
"license": "MIT",

@@ -22,4 +23,4 @@ "contributors": [

"dependencies": {},
"typesPublisherContentHash": "6f2aab1facaf5f1cdf642271751fd2676a0b89d263b21d7a126a3a0b4be74b82",
"typeScriptVersion": "3.5"
"typesPublisherContentHash": "046e9138dbf472a71e816ab850f51d2b464daa364777a152ca825abdd445887f",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,50 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/slug.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/slug/index.d.ts)
````ts
// Type definitions for slug 5.0
// Project: https://github.com/trott/node-slug
// Definitions by: Mohamed Hegazy <https://github.com/mhegazy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = slug;
declare function slug(string: string, replacement: string): string;
declare function slug(string: string, opts?: slug.Options): string;
declare namespace slug {
const charmap: CharMap;
const defaults: {
charmap: CharMap;
mode: string;
modes: {
pretty: Mode;
rfc3986: Mode;
};
multicharmap: CharMap;
};
const multicharmap: CharMap;
function extend(entry: CharMap): void;
function reset(): void;
interface Mode {
charmap?: CharMap | null | undefined;
lower?: boolean | null | undefined;
multicharmap?: CharMap | null | undefined;
remove?: RegExp | null | undefined;
replacement?: string | null | undefined;
symbols?: boolean | null | undefined;
}
type Options = {
locale?: string | undefined;
} & Partial<Mode>;
type CharMap = Record<string, string>;
}
````
### Additional Details
* Last updated: Mon, 24 May 2021 11:31:33 GMT
* Last updated: Tue, 06 Jul 2021 16:34:58 GMT
* Dependencies: none

@@ -14,0 +59,0 @@ * Global values: none

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