Security News
OpenJS: “XZ Utils Cyberattack Likely Not an Isolated Incident”
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
buffer-js
Advanced tools
Weekly downloads
Readme
This Node package makes working with the Buffer API a breeze! A little present for the awesome Buffer team & the happy community :)
The package was design with simplicity and extendability in mind. In other words, it's object oriented! It's so simple that I thought writing test code would be an overkill!
To get started, just...
npm install buffer-js
You'll need an access token to start using the Buffer API, you can either use the single-time access token provided by Buffer when you created the application for your own usage only, or you can request access tokens using OAUTH 2.0, which is beyond the scope of this package.
NOTE: the params object literal that you may need to pass varries by method. Check the Buffer API docs for more info.
var Buffer = require('buffer-js');
var callback = function(body) {
console.log(body);
};
// Check the Buffer API docs to pass the right parameters
// based on the method you're calling
var params = {
...
...
}
var opts = {
access_token: 'ACCESS_TOKEN'
};
var User = new Buffer.User(opts);
User.get(callback);
var Links = new Buffer.Links(opts);
Links.get(params, callback);
var Info = new Buffer.Info(opts);
Info.get(callback);
var opts = {
access_token: 'ACCESS_TOKEN',
profile_id: 'PROFILE_ID'
};
Profiles = new Buffer.Profiles(opts);
Profiles.all(callback); // doesn't need profile_id
Profiles.get(callback);
Profiles.schedules(callback);
Profiles.updateSchedules(params, callback);
Profiles.pendingUpdates(params, callback);
Profiles.sentUpdates(params, callback);
Profiles.reorderUpdates(params, callback);
Profiles.shuffleUpdates(params, callback);
var opts = {
access_token: 'ACCESS_TOKEN',
update_id: 'UPDATE_ID'
};
Updates = new Buffer.Updates(opts);
Updates.create(params, callback); // doesn't need update_id
Updates.get(callback);
Updates.interactions(params, callback);
Updates.update(params, callback);
Updates.share(callback);
Updates.destroy(callback);
Updates.moveTop(callback);
FAQs
Node.js Wrapper for the Buffer API
The npm package buffer-js receives a total of 3 weekly downloads. As such, buffer-js popularity was classified as not popular.
We found that buffer-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
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
Company News
Come meet the Socket team at BSidesSF and RSA! We're sponsoring several fun networking events and we would love to see you there.
Security News
OSI is starting a conversation aimed at removing the excuse of the SaaS loophole for companies navigating licensing and the complexities of doing business with open source.