Socket
Socket
Sign inDemoInstall

base64-email-filename-parser

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    base64-email-filename-parser

A microlibrary for parsing and validating a filename of the form ..<extension>


Version published
Weekly downloads
5
Maintainers
1
Created
Weekly downloads
 

Readme

Source

base64-email-filename-parser

Installation

npm install base64-email-filename-parser

Usage

fileName should be of the format <base64-email>.<id>.<extension>.

var parser = require('base64-email-filename-parser');

var fileName = 'am9obi5kb2VAZW1haWwuY29t.1.txt';
var parsed = parser(fileName, 'txt');

console.log(parsed);
/*
{
  email: 'john.doe@email.com',
  id: '1',
  extension: 'txt'
}
*/

Keywords

FAQs

Last updated on 02 Jun 2017

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc