/youtube-ids

Create IDs similar to YouTube e.g. yzNjIBEdyww

Primary LanguageJavaScriptMIT LicenseMIT

youtube-ids NPM version Build Status Patreon donate button

Create IDs similar to YouTube e.g. yzNjIBEdyww

Installation

$ npm install --save youtube-ids --save

Usage

const youtubeIds = require('youtube-ids');

var youtubeStyleIDEncode = youtubeIds.encode(9871923729)); // Returns ruAfMk
var youtubeStyleIDDecode = youtubeIds.decode('ruAfMk')); // Returns 9871923729

License

MIT © Robert James Gabriel