base64id/ 000755 001751 000177 0000000000 14522265600 014140 5 ustar 00runner 000000 000000 14522265600 14522265600 base64id/LICENSE 000644 001751 000177 0000002165 14522265600 015151 0 ustar 00runner 000000 000000 14522265600 14522265600 MIT License
Copyright (c) Microsoft Corporation.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
base64id/README.md 000644 001751 000177 0000002023 14522265600 015417 0 ustar 00runner 000000 000000 14522275224 14522265600 # Installation
> `npm install --save @types/base64id`
# Summary
This package contains type definitions for base64id (https://github.com/faeldt/base64id).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/base64id.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/base64id/index.d.ts)
````ts
///
/**
* Generates a base64 id
*/
export function generateId(): string;
/**
* Get random bytes
*
* Uses a buffer if available, falls back to crypto.randomBytes
*/
export function getRandomBytes(bytes: number): Buffer;
export let bytesBuffer: Buffer;
export let bytesBufferIndex: number;
export let isGeneratingBytes: boolean;
export let sequenceNumber: number;
````
### Additional Details
* Last updated: Mon, 06 Nov 2023 22:41:04 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
# Credits
These definitions were written by [Shadman Kolahzary](https://github.com/Kolahzary).
base64id/index.d.ts 000644 001751 000177 0000000616 14522265600 016044 0 ustar 00runner 000000 000000 14522265600 14522265600 ///
/**
* Generates a base64 id
*/
export function generateId(): string;
/**
* Get random bytes
*
* Uses a buffer if available, falls back to crypto.randomBytes
*/
export function getRandomBytes(bytes: number): Buffer;
export let bytesBuffer: Buffer;
export let bytesBufferIndex: number;
export let isGeneratingBytes: boolean;
export let sequenceNumber: number;
base64id/package.json 000644 001751 000177 0000001475 14522265600 016440 0 ustar 00runner 000000 000000 14522275224 14522265600 {
"name": "@types/base64id",
"version": "2.0.2",
"description": "TypeScript definitions for base64id",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/base64id",
"license": "MIT",
"contributors": [
{
"name": "Shadman Kolahzary",
"githubUsername": "Kolahzary",
"url": "https://github.com/Kolahzary"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/base64id"
},
"scripts": {},
"dependencies": {
"@types/node": "*"
},
"typesPublisherContentHash": "124c3a7679e34cb0164a3a20c9251bd758e22185e23658159b64be66e1178502",
"typeScriptVersion": "4.5"
}