Skip to content

A node wrapper around Sunlight Foundation's Capital Words API.

License

Notifications You must be signed in to change notification settings

tcamara/node-capitalwords

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sunlight Foundation Capital Words API Wrapper

A node.js wrapper around the Sunlight Foundation's Capital Words API that utilizes promises for easy chaining and asynchronous code.

Installing

npm install node-capitalwords

Configuration

You will need a Sunlight Foundation API key to use the underlying API. This can be obtained here.

Usage

const CapitalWords = require('./capitalwords');

const capitalWords = new CapitalWords('yourAPIKey');

capitalWords.dates({ phrase: 'Sunlight Foundation' })
	.then(function(response) {
		console.log(response);
	})
	.catch(function(errorText) {
		console.log('Error: ', errorText);
	});

Check out the included examples.js for more examples

License

MIT

About

A node wrapper around Sunlight Foundation's Capital Words API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published