Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inDemoInstall

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
    Github

Version published
Maintainers
1
Weekly downloads
17,088,423
decreased by-17.99%

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 13,619,715 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

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket[email protected]

Product

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc