Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
prototyped.js
Advanced tools
Common typescript ready prototypes available in both CommonJS and ECMAScript
Common Typescript ready helpers & prototypes available for both Server-Side and Client-Side applications.
More than 100
useful methods collected in one place
if you have a method you think needs to be a part of this package, feel free to contribute
npm i -s prototyped.js
All documents are available at here
Apply prototypes:
import "prototyped.js/shim";
// or more specificaly...
import "prototyped.js/string/shim";
// or even more specificaly!
import "prototyped.js/string/words/shim";
console.log("hello world!".words()); // ['hello', 'world']
Or just import the methods without causing any side effect:
import words from "prototyped.js/string/words";
console.log(words("hello world!")); // ['hello', 'world']
import string from "prototyped.js/string";
console.log(string.words("hello world!")); // ['hello', 'world']
import pt from "prototyped.js";
console.log(pt.string.words("hello world!")); // ['hello', 'world']
Apply prototypes:
require("prototyped.js/shim");
// or more specificaly...
require("prototyped.js/string/shim");
// or even more specificaly!
require("prototyped.js/string/words/shim");
console.log("hello world!".words()); // ['hello', 'world']
Or just import the methods without causing any side effect:
const words = require("prototyped.js/string/words").default;
console.log(words("hello world!")); // ['hello', 'world']
const string = require("prototyped.js/string").default;
console.log(string.words("hello world!")); // ['hello', 'world']
const pt = require("prototyped.js").default;
console.log(pt.string.words("hello world!")); // ['hello', 'world']
We use SemVer for versioning. For the versions available, see the releases on this repository.
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for details
FAQs
Common typescript ready prototypes available in both CommonJS and ECMAScript
The npm package prototyped.js receives a total of 6,492 weekly downloads. As such, prototyped.js popularity was classified as popular.
We found that prototyped.js 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.