</>PackageGraphPackageGraph

ret

npmv0.5.0TypeScript

Tokenizes a string that represents a regular expression.

Not recommended for new projects

No — ret should not be adopted for new projects. Last published 1273 days ago.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • FMaintenance: grade F, Failing.

    Last published 1273 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 68 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding ret to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

68 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node >=10
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the ret README.

const ret = require('ret');

let tokens = ret(/foo|bar/.source);

ret vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
retthis page01MIT3 years ago
is-regex75.1M1MIT1 day ago
regexp.prototype.flags01MIT1 day ago
escape-string-regexp316.5M8MIT1 day ago
css-tree05MIT1 day ago
anymatch01ISC1 day ago

Dependencies

Declared by ret v0.5.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (7)

@types/node ^14.11.8@typescript-eslint/eslint-plugin ^4.11.1@typescript-eslint/parser ^4.11.1eslint ^7.16.0nyc ^14.1.1typescript ^4.0.3vows ^0.8.3

Used by

Popular packages that depend on ret.

Relationship graph

Dependencies (left) and dependents (right) of ret.

safe-regex2ret
ret dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 114 days apart.

Recent versions of ret
VersionPublishedSizeLicense
0.5.0latest3 years ago68 KBMIT
0.4.33 years ago65 KBMIT
0.4.24 years ago64 KBMIT
0.4.14 years ago64 KBMIT
0.4.05 years ago60 KBMIT
0.3.25 years ago44 KBMIT
0.3.17 years ago23 KBMIT
0.3.07 years ago22 KBMIT
0.2.28 years ago17 KBMIT
0.2.18 years agoMIT
0.2.08 years agoMIT
0.1.159 years agoMIT
0.1.149 years agoMIT
0.1.139 years agoMIT
0.1.1210 years agoMIT

Overview

ret is an npm package that tokenizes a string that represents a regular expression. It has 1 known dependents in the graph. The latest version is 0.5.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need tokenizes a string that represents a regular expression and value a focused solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use ret?

No — ret should not be adopted for new projects. Last published 1273 days ago.

How do I install ret?

Run `npm install ret` to add ret to your npm project.

What license is ret released under?

ret is distributed under the MIT license.

How popular is ret?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on ret.

Is ret still maintained?

The most recent release of ret (v0.5.0) was published 3 years ago.

Does ret run install scripts?

No. ret does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.