Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
'rekuire' is basically node's 'require' without the relative paths!
It saves you TONS of time refactoring your code, and making it easily reusable. plus, it makes you code more readable = better!
to install, type
npm install rekuire
or add it to your package.json
as a dependency.
####0.1.5
- fixed a bug that causes failures when scanning a package with higher os privileges (thanks Danny!)
####0.1.4
- added a method to ignore folders while searching the right files (for example, the js files in the server's static folder)
####0.1.3
- you can now rekuire file according to the relative path of the file
- added support for index.js files inside a folder - can be retrieved by the folder path
####0.1.2
- added support for .coffee files and .json
instead of doing this:
var MyModule = require('../../../MyModule.js');
<-- yuck!
why not do this:
var rek = require('rekuire');
var myModule = rek('MyModule');
or that:
var myCoffee = rek('MyCoffee.coffee');
var myJson = rek('myJson.json');
var myModule = rek('src/api/MyModule');
in order to tell the scanner, not to scan specific folders
use:
var mypath = rek.ignore('out', 'target', 'static/js');
// you should only do it once in your code
if you want to resolve only the file location, for example, when you want to use proxyquire.
use:
var mypath = rek.path('MyModule');
// mypath = 'lib/classes/MyModule.js'
for more examples, I recommend you to checkout the spec file :)
when 'rekuire' is first loaded to the project, it scans the source files locations, so when you need them they are right there to use! no relative paths are needed! yeahy!
if you are having any problems, requests or criticism, don't hesitate to open an issue, here
To test, run: npm test
FAQs
'rekuire' is basically node's 'require' without the relative paths
The npm package rekuire receives a total of 368 weekly downloads. As such, rekuire popularity was classified as not popular.
We found that rekuire 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
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.