Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
vndb-api-kana
Advanced tools
An API wrapper for VNDB HTTP API(v2) that allows you to interact with the VNDB API in a type-safe manner using TypeScript.
Strong type checking for all the parameters passed in when making requests to the VNDB API, which ensures that your code is correct and reduces the chances of runtime errors.
TODO
To install this package, simply run the following command:
npm install vndb-api-kana axios
import Kana from 'vndb-api-kana';
const kana = new Kana({
baseURL: 'https://api.vndbproxy.org/kana'
});
kana.setAuth(TOKEN);
kana.apis
.getVn({
filters: ['search', '=', 'ハミダシクリエイティブ凸'],
fields: ['id', 'title', 'image.id'],
})
.then((res) => {
console.log(
res.results.map((item) =>
item.image?.map((image) => image.id).join(', '),
),
);
});
.catch((e) => {
// catch axios error
});
You can also use the API directly by importing the api
object and types from the package.
import { api, CharacterFilters, Character } from 'vndb-api-kana';
const characterFilters: CharacterFilters = [
'and',
['weight', '>', 200],
['height', '<', 140],
];
(async () => {
try {
const res = await api.getCharacter({
filters: characterFilters,
fields: ['id', 'traits.name'],
});
console.log(res);
} catch (e) {
// do something
}
})();
// others function:
const renderChar = (c: Character) => {
// ...
};
FAQs
api wrapper for vndb.org
The npm package vndb-api-kana receives a total of 10 weekly downloads. As such, vndb-api-kana popularity was classified as not popular.
We found that vndb-api-kana 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 researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.