Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@datafire/fungenerators_random_facts
Advanced tools
Client library for Facts API
npm install --save @datafire/fungenerators_random_facts
let fungenerators_random_facts = require('@datafire/fungenerators_random_facts').create({
"X-Fungenerators-Api-Secret": ""
});
.then(data => {
console.log(data);
});
A full featured Facts API. REST access with json/xml/jsonp result support. On this day birth and death support, random fact, keyword search support etc. Below is the documentation for the Random Facts API calls. You can try them out right here. Click here to subscribe
Delete a Fact entry identified by the id.
fungenerators_random_facts.fact.delete({
"id": ""
}, context)
object
string
: Fact IDOutput schema unknown
Get a Fact belonging to the id.
fungenerators_random_facts.fact.get({}, context)
object
string
: ID of the fact to fetchOutput schema unknown
Add a Fact entry to the database (private collection).
fungenerators_random_facts.fact.put({
"fact": "",
"category": "",
"subcategory": "",
"tags": ""
}, context)
object
string
: Fact Textstring
: Category of the factstring
: Sub Category of the factstring
: TagsOutput schema unknown
Get a random Fact.
fungenerators_random_facts.fact.categories.get({}, context)
object
integer
: startOutput schema unknown
Get fact of the day for the given category.
fungenerators_random_facts.fact.fod.get({}, context)
object
string
: Category to get the fact of the day from. Must be one from the list returned from /fact/fod/categoriesOutput schema unknown
Get the list of supported fact of the day categories.
fungenerators_random_facts.fact.fod.categories.get(null, context)
This action has no parameters
Output schema unknown
Get a random fact about a number
fungenerators_random_facts.fact.numbers.get({
"number": 0
}, context)
object
integer
: Number valueOutput schema unknown
Returns a random ( famous/ relatively famous ) person born on a given day and month
fungenerators_random_facts.fact.onthisday.born.get({}, context)
object
string
: Optional month (1-12). Defaults to current monthstring
: Optional day of the month (1- 28/30/31 based on the month). Defaults to current day of the month.Output schema unknown
Returns a random ( famous/ relatively famous ) person died on a given day and month
fungenerators_random_facts.fact.onthisday.died.get({}, context)
object
string
: Optional month (1-12). Defaults to current monthstring
: Optional day of the month (1- 28/30/31 based on the month). Defaults to current day of the month.Output schema unknown
Returns a random ( famous/ relatively famous ) historic event on a given day and month
fungenerators_random_facts.fact.onthisday.event.get({}, context)
object
string
: Optional month (1-12). Defaults to current monthstring
: Optional day of the month (1- 28/30/31 based on the month). Defaults to current day of the month.Output schema unknown
Get a random Fact for a given category(optional) and subcategory(optional).
fungenerators_random_facts.fact.random.get({}, context)
object
string
: Category to get the fact fromstring
: Sub Category to get the fact fromOutput schema unknown
Search for random Fact which has the text in the query, for a given category(optional) and subcategory(optional).
fungenerators_random_facts.fact.search.get({}, context)
object
string
: Text to search for in the factsstring
: Category to get the fact fromstring
: Sub Category to get the fact fromOutput schema unknown
This integration has no definitions
FAQs
DataFire integration for Facts API
We found that @datafire/fungenerators_random_facts 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.