![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
arg-analyser
Advanced tools
A simple configurable string analyser to get elements from command like string
A simple configurable string analyser to get elements from command like string.
import { Analyser } from "arg-analyser";
const sample = `Lorem ipsum "dolor sit amet, consectetur" adipiscing (elit. [In id {fermentum mi.}] Curabitur) viverra, 'justo \\'nec viver"ra' mollis, lec"tus massa."`;
// Perform a one shot analyse
const args = Analyser.analyse(sample, {
delimiters: [
["(", ")"],
["[", "]"],
["{", "}"],
],
});
// Instantiate a Analyse object to re-use it
const analyser = new Analyser({
delimiters: [
["(", ")"],
["[", "]"],
["{", "}"],
],
});
const args1 = analyser.analyse("hello world !");
const args2 = analyser.analyse(sample);
To run the example script :
git clone https://github.com/tguichaoua/arg-analyser.git
cd arg-analyser
npm install
npm run example
========================================
hello world !
----------------------------------------
├ ∅ hello
├ ∅ world
├ ∅ !
========================================
"hello world" !
----------------------------------------
├ " hello world
├ ∅ !
========================================
[deep (in {the (rabbit [hole])})]
----------------------------------------
├ [ ]
│ ├ ∅ deep
│ ├ ( )
│ │ ├ ∅ in
│ │ ├ { }
│ │ │ ├ ∅ the
│ │ │ ├ ( )
│ │ │ │ ├ ∅ rabbit
│ │ │ │ ├ [ ]
│ │ │ │ │ ├ ∅ hole
========================================
Copyright © 2021 Tristan Guichaoua.
This project is MIT licensed.
FAQs
A simple configurable string analyser to get elements from command like string
The npm package arg-analyser receives a total of 1 weekly downloads. As such, arg-analyser popularity was classified as not popular.
We found that arg-analyser 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.