Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

buttercms

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buttercms - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

lib/resources/Content.js

3

lib/butter.js

@@ -9,3 +9,4 @@ 'use strict';

Author: require('./resources/Author'),
Feed: require('./resources/Feed')
Feed: require('./resources/Feed'),
Content: require('./resources/Content')
}

@@ -12,0 +13,0 @@

{
"name": "buttercms",
"version": "1.0.5",
"version": "1.0.6",
"description": "ButterCMS API Client",

@@ -5,0 +5,0 @@ "keywords": [

@@ -38,2 +38,10 @@ # ButterCMS node.js client

});
// Try our new custom content feature
butter.content.retrieve(["homepage_html_title", "homepage_meta_description"])
.then(function(response) {
console.log(response)
}).catch(function(response) {
console.log(response)
});
```

@@ -59,2 +67,4 @@

* `retrieve(type[, params])`
* content
* `retrieve(keys)`

@@ -61,0 +71,0 @@ ## Documentation

var butter = require('./lib/butter')('b60a008584313ed21803780bc9208557b3b49fbb');
butter.post.list({page: 1, page_size: 10})
.then(function(response) {
console.log(response)
}).catch(function(response) {
console.log(response)
});
// butter.post.list({page: 1, page_size: 10})
// .then(function(response) {
// console.log(response)
// }).catch(function(response) {
// console.log(response)
// });
butter.post.search('import', {page: 1, page_size: 10})
.then(function(response) {
console.log(response)
}).catch(function(response) {
console.log(response)
});

@@ -23,1 +17,9 @@ // butter.post.retrieve("directly-import-pdfs-into-your-blog-post")

// });
butter.content.retrieve(["abis_team", "homepage_headlinee"])
.then(function(response) {
console.log(response.data.data)
}).catch(function(response) {
console.log(response)
});

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc