Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
climatecounts
Advanced tools
Unofficial Node.js module to access the Climate Counts API.
API documentation: http://api.climatecounts.org
The ClimateCounts.org API is gone rendering this package useless. All methods will fail.
npm install climatecounts
var api = require('climatecounts')
git clone https://github.com/fvdm/nodejs-climatecounts
var api = require('./nodejs-climatecounts')
var api = require('climatecounts')
api.companies( {Search: 'amer'}, console.log )
{ '25':
{ CompanyID: 25,
Name: 'Bank of America',
SectorCode: 'CB',
Sector: 'Commercial Banking' },
'57':
{ CompanyID: 57,
Name: 'Sara Lee',
SectorCode: 'FP',
Sector: 'Food Products' } }
Communicate with the API.
Param Type Required Description Example
-------- -------- -------- ----------------------------- ----------------
path string required Path betweet /1/ and .json Companies
params object optional Object with method parameters {Search: 'amer'}
callback function required Function to receive result console.log
api.talk( 'Companies', {Search: 'amer'}, console.log )
Returns all the years that full data is currently available for.
Details: http://api.climatecounts.org/docs/AvailableYears.htm
api.availableyears( console.log )
{ '2011': { Year: 2011, NumScores: 136 } }
Returns company information, searchable by id, sector or freetext.
They are parsed into an object with their CompanyID as item key, for back reference.
Details: http://api.climatecounts.org/docs/Companies.htm
Param Required Description Example
-------- -------- ----------------------------- ----------------
params optional Object with method parameters {Search: 'amer'}
callback required Function to receive result console.log
api.companies( {Search: 'amer'}, console.log )
{ '25':
{ CompanyID: 25,
Name: 'Bank of America',
SectorCode: 'CB',
Sector: 'Commercial Banking' },
'57':
{ CompanyID: 57,
Name: 'Sara Lee',
SectorCode: 'FP',
Sector: 'Food Products' } }
Returns all brands and their associated company ids.
Details: http://api.climatecounts.org/docs/Brands.htm
api.brand( console.log )
[ { CompanyID: 7, Name: '(owned by Continental)' },
{ CompanyID: 25, Name: '100 Federal Street Limited' },
{ CompanyID: 25,
Name: '1784 S.A. Sociedad Gerente de Fondos Comunes de Inversion' },
{ CompanyID: 21, Name: '180 Energy' },
{ CompanyID: 35, Name: '1st Business Bank' },
{ CompanyID: 93, Name: '20th century Fox' } ]
Returns company-specific yearly scores, individually or by sector or progress.
Details: http://api.climatecounts.org/docs/Scores.htm
Param Required Description Example
-------- -------- ----------------------------- ----------------
params optional Object with method parameters {Search: 'amer'}
callback required Function to receive result console.log
api.scores( {CompanyID: 1}, console.log )
[ { Year: 2011,
CompanyID: 1,
Company: 'AirTran',
SectorCode: 'A',
Sector: 'Airlines',
Review: 0,
Reduce: 5,
PolicyStance: 0,
Report: 0,
Total: 5,
Change: 0,
Progress: 'Stuck' } ]
Returns aggregate scores, combined for all companies per sector, or all sectors inclusive.
Details: http://api.climatecounts.org/docs/AggregateScores.htm
Param Required Description Example
-------- -------- ----------------------------- ----------------
params optional Object with method parameters {Search: 'amer'}
callback required Function to receive result console.log
api.aggregatescores( {Year: 2011}, console.log )
[ { Year: 2011,
NumScores: 10,
Total: 37,
Review: 9,
Reduce: 23,
PolicyStance: 0,
Report: 5,
Change: 1,
SectorCode: 'A',
Sector: 'Airlines' },
{ Year: 2011,
NumScores: 7,
Total: 48,
Review: 14,
Reduce: 23,
PolicyStance: 4,
Report: 6,
Change: 7,
SectorCode: 'AA',
Sector: 'Apparel' } ]
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.
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 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.
For more information, please refer to http://unlicense.org/
FAQs
DEPRECATED - Access ClimateCounts.org API methods
The npm package climatecounts receives a total of 0 weekly downloads. As such, climatecounts popularity was classified as not popular.
We found that climatecounts 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.