Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

astral-regex

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Issues
File Explorer

Advanced tools

astral-regex

Regular expression for matching astral symbols

    2.0.0latest

Version published
Maintainers
1
Weekly downloads
19,902,687
decreased by-3.34%

Weekly downloads

Readme

Source

astral-regex Build Status

Regular expression for matching astral symbols

Install

$ npm install astral-regex

Usage

const astralRegex = require('astral-regex'); astralRegex({exact: true}).test('🦄'); //=> true 'foo 🦄 💩 bar'.match(astralRegex()); //=> ['🦄', '💩']

API

astralRegex([options])

Returns a RegExp for matching astral symbols.

options

Type: Object

exact

Type: boolean
Default: false (Matches any astral symbols in a string)

Only match an exact string. Useful with RegExp#test() to check if a string is a astral symbol.

License

MIT © Kevin Mårtensson

Keywords

FAQs

What is astral-regex?

Regular expression for matching astral symbols

Is astral-regex popular?

The npm package astral-regex receives a total of 16,676,251 weekly downloads. As such, astral-regex popularity was classified as popular.

Is astral-regex well maintained?

We found that astral-regex demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 05 Apr 2019
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc