Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Readme
pattern
is a way to do pattern matching in javascript that helps you do asynchronous iterations
// check `samples/nodetuts.js` for working code
insert_all([], function () { console.log('done'); });
insert_all(_, function (l) {
insert_element(l.shift(), function (elem) {
console.log('‣ ', elem);
insert_all(l);
});
});
insert_all([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
the first pattern in pattern
sets the arity of the function to execute
// first call sets arity #1
// when this condition is met it logs the message done
insert_all([], function () { console.log('done'); });
then we normally register the iteration pattern:
// var _; was set in the top, value is undefined
insert_all(_, function (l) {
if you then call insert_all
where the argument count matches arity, pattern
knows its time to execute
// one argument, arity #1
// run forest, run
insert_all([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
this is the code you would normally write to do the same thing in javascript
# installation ## node.js # samplesthere are samples in the samples
directory. check them out
if you are not familiar with haskell
and you love your javascript object oriented code you better look away right now. this pretty much breaks everything you love and care about in javascript
pattern
was made so i could learn some more javascript. it's slow, and certainly not web scale
this software does not obey laws, common best practices, or even common sense
it does everything that is wrong in javascript; or at least attempts to (suggestions are welcome)
i'll probably still use it anyway
# roadmappointfree style (note i'm just kidding)
# contributeeveryone is welcome to contribute. patches, bug-fixes, new features
pattern
git checkout -b feature_name
git push origin feature_name
git clone git://github.com/dscape/p.git
(oO)--',-
in caos
copyright 2012 nuno job <nunojob.com> (oO)--',--
licensed under the apache license, version 2.0 (the "license"); you may not use this file except in compliance with the license. you may obtain a copy of the license at
http://www.apache.org/licenses/LICENSE-2.0
unless required by applicable law or agreed to in writing, software distributed under the license is distributed on an "as is" basis, without warranties or conditions of any kind, either express or implied. see the license for the specific language governing permissions and limitations under the license
FAQs
pattern matching in javascript for asyncronous iteration
The npm package p receives a total of 353 weekly downloads. As such, p popularity was classified as not popular.
We found that p 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.