New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

intents

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intents

Intents for node-based systems.

latest
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

##Intents for node.js-based systems

If you write node modules (Mongoose plugins for example) that rely on 3rd party services like email, s3, iOS and Android push notifications, it's hard to keep versatility. Intents are set of protocols and standards which let outsource 3rd party services configuration to user from your universal aspect oriented modules.

Installation:

npm install intents

Usage (in libraries):

var email = require('intents').email;
var storage = require('intents').storage;

# ...

email.send({sender: sender, recipient: recipient, topic: topic, text: text}, function(error) {
    if(!error) {
      console.log("Email sent");
    }
});

storage.uploadPng({filename: filename, content: content}, function(error, url) {
  if (!error) {
    console.log("File uploaded to " + url);
  }
});

Usage (in client's application):

./config/default.js

var email = require('intents-ses');
var s3 = require('intents-s3');
  
exports.email = ses({
  key: 'my-key'
  secret: 'my-secret'
});

exports.storage = s3({
  key: 'my-key'
  secret: 'my-secret'
  bucket: 'my-bucket
});

FAQs

Package last updated on 22 Nov 2012

Did you know?

Socket

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.

Install

Related posts