npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@a-2-c-2-anpm/odit-asperiores-molestias

v1.0.0

Published

[![Subscribe](https://img.shields.io/badge/%20subscribe%20-%20mailchimp%20-blue.svg )](http://eepurl.com/cGRggH) [![Downloads](https://img.shields.io/npm/dm/@a-2-c-2-anpm/odit-asperiores-molestias.svg)](https://npm-stat.com/charts.html?package=@a-2-c-2-an

Downloads

9

Maintainers

tranduc345zztranduc345zz

Keywords

sequencewraphigher-ordermiddlewaresimpledbnamechaiwhichresolvermdirbootstrap cssec2progresslesscssfoldercomputed-typeschineseIteratorArray.prototype.filterbindInt32ArrayECMAScript 2016lookwebpathfindLastIndexformattingtypanionECMAScript 2018es-shim APIECMAScript 5multi-packagedeepcloneelasticacheeveryobjBigUint64ArraylengthReflect.getPrototypeOftextwatchFileObservableECMAScript 2019ReactiveExtensionsgroupBywaitfetchcssstoragegatewaylazycircularprettyfseventsredirectRxJStddsuperagenteslintconfigroute53apolloimportcompareES2021Object.fromEntriesweakmapconfigurablefastnodejscloudformationclientstatelessRegExp.prototype.flagsgenericstypesafegraphqlless cssmobilevisualcloudsearchECMAScript 2020fullwidthswfWebSocketsespreedeterministicpromisedeep-cloneeventDispatcherbyteLengthcallECMAScript 3Object.entriesterminalnpmclassnamessetfastcloneAsyncIterator0readpipeviewcodesentriesl10nreal-timeJSON-Schemadeepcopyfull-widthECMAScript 2021postcss-plugingetwalkingequality_.extendwriteopenconsoleremovereact-hook-formcss nestingfastcopyECMAScript 2022eventsassertES2017scheme-validationhelperses7call-bindexpressreplayinvariantbootstrap lesslruless compilergrouprequireupUnderscoreWebSocketeslintpluginrangeerrorinternalextendsuperstructstringifieronceansittyserializeairbnbCSSUint16ArrayshrinkwrapquoteTypeBoxtyped arrayoptimizerphoneformatsortedschemamomentinferencevalidcss-in-jsURLchromiummochacode pointsdomdateguidclass-validatortestingspinnerglacierthrottlebannerruntimeclassnameReactiveXjslockfilediffsharedpositiveArray.prototype.includesagentautoprefixerwarningFloat64Arraydebuges2016zodgdprexpressionlanguagermbddUint8ArrayflatMapponyfillflattenstructuredClonedefineProperty

Readme

@a-2-c-2-anpm/odit-asperiores-molestias.js for Node.js

Subscribe Downloads Status Dependencies status

Powerful @a-2-c-2-anpm/odit-asperiores-molestias for Node.js that just works so you can focus on your awesome project:

// Include it and extract some methods for convenience
const @a-2-c-2-anpm/odit-asperiores-molestias = require('@a-2-c-2-anpm/odit-asperiores-molestias');
const { get, post } = @a-2-c-2-anpm/odit-asperiores-molestias.router;

// Launch @a-2-c-2-anpm/odit-asperiores-molestias with options and a couple of routes
@a-2-c-2-anpm/odit-asperiores-molestias({ port: 8080 }, [
  get('/', ctx => 'Hello world'),
  post('/', ctx => {
    console.log(ctx.data);
    return 'ok';
  })
]);

Getting started

There's a whole tutorial on getting started for beginners but the quick version is to first install @a-2-c-2-anpm/odit-asperiores-molestias as a dependency:

npm install @a-2-c-2-anpm/odit-asperiores-molestias

Server requires Node.js 7.6.0 or newer. Node.js 8.x.y LTS is recommended.

Then you can create a file called index.js with this code:

// Include the @a-2-c-2-anpm/odit-asperiores-molestias in your file
const @a-2-c-2-anpm/odit-asperiores-molestias = require('@a-2-c-2-anpm/odit-asperiores-molestias');
const { get, post } = @a-2-c-2-anpm/odit-asperiores-molestias.router;

// Handle requests to the url "/" ( http://localhost:3000/ )
@a-2-c-2-anpm/odit-asperiores-molestias([
  get('/', ctx => 'Hello world!')
]);

Execute this in the terminal to get the @a-2-c-2-anpm/odit-asperiores-molestias started:

node .

And finally, open your browser on localhost:3000 and you should see 'Hello world!' on your browser.

Documentation

The library is documented here:

Full Documentation

Subscribe here to receive tutorials when released. Tutorials are good for learning while the documentation is good for reference/quick use once you know the basics.

You can also download the repository and try the examples by browsing to them and node . inside each of them in /examples.

Use cases

The package @a-2-c-2-anpm/odit-asperiores-molestias is great for many situations. Let's see some of them:

Small to medium projects

Everything works out of the box, you get great support for most features and you can easily tap into Express' middleware ecosystem. What's not to love?

Some of the included features: body and file parsers, cookies, sessions, websockets, Redis, gzip, favicon, csrf, SSL, etc. They just work so you will save a headache or two and can focus on your actual project. Get a simple form going:

const @a-2-c-2-anpm/odit-asperiores-molestias = require('@a-2-c-2-anpm/odit-asperiores-molestias');
const { get, post } = @a-2-c-2-anpm/odit-asperiores-molestias.router;
const { render, redirect } = @a-2-c-2-anpm/odit-asperiores-molestias.reply;

@a-2-c-2-anpm/odit-asperiores-molestias(
  get('/', () => render('index.pug')),
  post('/', ctx => {
    console.log(ctx.data);
    return redirect('/');
  })
);

API design

From the flexibility and expressivity of the bundle, designing APIs is a breeze:

// books/router.js
const { get, post, put, del } = require('@a-2-c-2-anpm/odit-asperiores-molestias/router');
const ctrl = require('./controller');

module.exports = [
  get('/book', ctrl.list),
  get('/book/:id', ctrl.item),
  post('/book', ctrl.create),
  put('/book/:id', ctrl.update),
  del('/book/:id', ctrl.delete)
];

Real time

Websockets were never this easy to use! With socket.io on the front-end, you can simply do this in the back-end to handle those events:

// chat/router.js
const { socket } = require('@a-2-c-2-anpm/odit-asperiores-molestias/router');
const ctrl = require('./controller');

module.exports = [
  socket('connect', ctrl.join),
  socket('message', ctrl.message),
  socket('disconnect', ctrl.leave)
];

Author & support

This package was created by Francisco Presencia but hopefully developed and maintained by many others. See the the list of contributors here.

You can also sponsor the project, get your logo in here and some other perks with tons of ♥