Security News
vlt Debuts New JavaScript Package Manager and Serverless Registry at NodeConf EU
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
easypattern
Advanced tools
EasyPattern is a readable alternative to regular expressions
It is great to match urls with ease, and keep is super readable!
to install, type
npm install easypattern
Basic testings
var easyPattern = require("easyPattern");
var pattern = easyPattern("{file}.js");
pattern.test("archive.zip"); // false
pattern.test("index.js"); // true
Basic matching
var pattern = easyPattern("{folder}/{filename}.js");
var result = pattern.match("foo/bar.js");
//result = {folder: "foo", filename: "bar"}
Wildcard matching
var pattern = easyPattern("*.{extension}");
var result = pattern.match("/root/folder/file.exe");
//result = {extension:"exe"}
Advance matching
var pattern = easyPattern("{*}/{filename}?{*}");
var result = pattern.match("www.site.com/home/hello.js?p=1");
//result = {1:"www.site.com/home", 2:"p=1", filename:"hello.js"}
FAQs
EasyPattern is a readable alternative to regular expressions
We found that easypattern 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.
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.
Security News
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
Security News
Research
The Socket Research Team uncovered a malicious Python package typosquatting the popular 'fabric' SSH library, silently exfiltrating AWS credentials from unsuspecting developers.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.