![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Nut is a concise query selector engine that just allows you to do extremely simple queries.
Hey, the names branch supports name
attributes! Thanks to Crydust ;)
Nut aims to be minimal to have a very tiny footprint and extreme velocity based on the observation that much of CSS requests could be kept as simple as possible since javascript is able to handle a lot of things. It is most of the time faster than querySelectorAll
and then faster than all selector engines. Nut does not implement request caching, to avoid unecessary code additions and performance loss, because the user can easily keep a request and pass it as a context to another request.
Here's it can handle :
#foo
section
.bar p
section #foo .bar p
div, #foo, .bar
And here's it can't :
div *
div#foo div.bar
div > p
div + p
So, all pseudo-classes, attribute selectors and other advanced syntax are not allowed. But, let's dig in it :
// Return an array
nut('#foo');
Of course, queries can have a context :
// Get nodes from the #foo context
nut('.bar p',nut('#foo')[0]);
And that's all you need to know ;)
Nut is compatible with ender and supports some useful syntax.
Selecting nodes, as usually:
$('#foo');
$('.bar p',$('#foo')[0]);
Selecting existing nodes:
var nodes=$('.bar');
$(nodes);
Nut is published under the MIT license.
FAQs
The concise CSS selector engine
The npm package nut receives a total of 13 weekly downloads. As such, nut popularity was classified as not popular.
We found that nut 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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.