![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
schenkerian
Advanced tools
Schenkerian analysis is a method of musical analysis by interpreting the underlying structure of a tonal work and to help reading the score according to that structure.
This library is that, but for HTML built on top of Natural Node which includes term frequency, string similarities, and tokenizing. Given most webpages (attempt) to use the semantics of HTML, it takes into account not only term frequency, but the weight of an HTML tag, placement in document, and other useful forms of denoting significance (like Open Graph).
$ npm install schenkerian --save
var analyze = require('schenkerian')
analyze({
url: 'http://dustindiaz.com',
body: '<html>...</html>' // optional. if absent, the module will `request` the given webpage
})
.then(function (result) {
console.log(result)
})
{
"totalWords": 637,
"permalink": "http://dustindiaz.com/",
"title": "Dustin Diaz",
"relevance": [
{
"word": "javascript",
"score": 1.074,
"count": 47
},
{
"word": "ender",
"score": 0.571,
"count": 25
},
{
"word": "follow",
"score": 0.228,
"count": 10
},
{
"word": "css",
"score": 0.228,
"count": 10
},
{
"word": "qwery tiny selector",
"score": 0.14,
"count": 3
},
{
"word": "open submodule library",
"score": 0.14,
"count": 3
},
{
"word": "js open submodule",
"score": 0.14,
"count": 3
},
{
"word": "ender js open",
"score": 0.14,
"count": 3
},
{
"word": "mvc framework node",
"score": 0.14,
"count": 3
},
{
"word": "tiny selector engine",
"score": 0.14,
"count": 3
}
]
}
FAQs
a HTML keyword analyzer
The npm package schenkerian receives a total of 4 weekly downloads. As such, schenkerian popularity was classified as not popular.
We found that schenkerian demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
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.