ghost/parse-email-address/README.md
Extract the local and domain parts of email address strings.
parseEmailAddress('[email protected]');
// => {local: 'foo', domain: 'example.com'}
parseEmailAddress('invalid');
// => null
parseEmailAddress('foo@中文.example');
// => {local: 'foo', domain: 'xn--fiq228c.example'}
example.com is okay, example is not.example.com is okay, example.x is not.This is a monorepo package.
Follow the instructions for the top-level repo.
git clone this repo & cd into it as usualpnpm to install top-level dependencies.pnpm lint run just eslintpnpm test run lint and tests