
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
wordpress.js
Advanced tools
Wordpress.js is an in-memory (read-only) front-end to Wordpress.
Create a connection to the database. The library uses the non-blocking mariasql driver.
var connection = new wordpress.Connection({
host: 'localhost'
, user: 'root'
, password: ''
})
Create a blog instance
var blog = new wordpress.Blog(connection, options);
Multisite installations are also supported
var multisite = new wordpress.Multisite(connection, options);
multisite.getBlogs(function (err, blogs) {
//...
});
Load the blog
blog.on('load', function (posts, metadata) {
//
});
The posts array contains published posts, sorted by date descending. Each post object contains id, title, content, excerpt, date, modified, slug, image, tags, categories.
The metadata object contains key/value pairs from the options table. The metadata.terms object contains the entire category/tag tree, while the metadata.archive array contains an index of post year/month combinations.
The Blog instance will poll the database and emit events when something changes.
blog.on('new_post', function (post) {
//...
});
The following events are available
The wrapper class for posts, metadata, tags, and categories can be overridden
var blog = new wordpress.Blog(connection, {
Post: MyCustomPostType
, Tag: MyCustomTagType
, Category: MyCustomCategoryType
, Metadata: MyCustomMetadataType
});
See the current types for more information.
$ make check
Test verbosity can be increased by using V=1, e.g. V=1 make check
Code coverage analysis can be run with
$ make coverage-html
Copyright (c) 2012 Sydney Stockholm opensource@sydneystockholm.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
**Wordpress.js** is an in-memory (read-only) front-end to Wordpress.
We found that wordpress.js 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.