
Security News
Security Community Slams MIT-linked Report Claiming AI Powers 80% of Ransomware
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.
osmose-request
Advanced tools
Request the Osmose API from Javascript, with promises :)
$ npm install osmose-request
import OsmoseRequest from 'osmose-request';
const osmose = new OsmoseRequest();
osmose.fetchErrors({ item: 8120 })
  .then(result => console.log(result));
In the previous example, the item option is one of the many Osmose options available and listed here:
https://wiki.openstreetmap.org/wiki/Osmose/api/0.2#Settings
For now, the value of the options have the same shape as the real API options. It will be more JS friendly in the future.
So for example, if you want to limit the returned results to a specific location, you can add the bbox option like that:
import OsmoseRequest from 'osmose-request';
const osmose = new OsmoseRequest();
osmose.fetchErrors({ item: 8120, bbox: '1.123,-0.124,2.767,0.243' })
  .then(result => console.log(result));
const osmose = new OsmoseRequest({
  language: 'fr',
  endpoint: 'https://...',
});
The Osmose API returns translated informations. That option lets you specify a language tag to be sent to the API in the Accept-Language HTTP header.
Read more informations about the format.
The main Osmose instance is used by default but you can specify your own.
Returns an errors list, you can provide some options to filter the result.
Read more about the available options.
osmose.fetchErrors({ item: 8120, status: 'open' })
  .then(result => console.log(result));
Returns the informations about a specific error.
// With 123456 as an error ID
osmose.fetchError(123456)
  .then(result => console.log(result));
Closes the given error on Osmose server.
// With 123456 as an error ID
osmose.closeError(123456)
  .then(result => console.log(result)); // true if taken into account
Sets this error as a false positive on Osmose server.
// With 123456 as an error ID
osmose.falseError(123456)
  .then(result => console.log(result)); // true if taken into account
Returns the list of the supported countries in the Osmose instance.
osmose.fetchSupportedCountries()
  .then(result => console.log(result));
Return the list of the item categories with some details.
osmose.fetchItemCategories()
  .then(result => console.log(result));
Returns the list of the items configured in the Osmose instance and their translated name.
You can filter the returned translations to one language by specifying a two letters locale (eg: fr, en, ru).
// Without language filter
osmose.fetchItems()
  .then(result => console.log(result));
// With a language filter
osmose.fetchItems('fr')
  .then(result => console.log(result));
To start contribute on this project, you can retrieve code using the following commands:
$ git clone git@github.com:osmlab/osmose-request.git
$ cd osmose-request
$ npm install
$ npm run watch
This project uses a specific work flow for branches:
master branch is dedicated to releases, managed by repo maintainersdevelop branch is for currently developed version, managed by repo maintainersfeature/... branches are for all developers, working on a particular featurePull requests are welcome, as the project is fully open-source. If you want to work on new features, please create a branch named feature/yourFeatureName. When work is done, open a pull request to merge your branch on develop branch. The code will be reviewed by one or several developers before being merged, in order to keep a good code quality.
$ git checkout develop
$ git pull origin develop
$ npm version patch -m "release: %s"
$ npm publish
$ git checkout master
$ git pull origin master
$ git merge develop
$ git push origin master
npm version tests the code, builds it and updates the doc. Then it upgrades the package version number according to the used keyword (patch, minor or major) and commits the modifications in Git (with a proper version tag). Finally, it pushes it to repository with the tag.
FAQs
Request the Osmose API from Javascript, with promises :)
The npm package osmose-request receives a total of 0 weekly downloads. As such, osmose-request popularity was classified as not popular.
We found that osmose-request demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.