JavaScript SDK
Learn about our JavaScript SDK
npm install nsey-sdkImporting the SDK
// If your project uses ES Modules:
import { detect } from 'nsey-sdk';
// If your project uses CommonJS:
const { detect } = require('nsey-sdk');Basic Usage
async function nsey_detect(text, model = 'nsey') {
try {
const result = await detect(text, model);
console.log('Detection result:', result);
} catch (error) {
console.error('Error detecting text:', error);
}
}
// Example usage
nsey_detect('Hello World');Example: Handling NSFW Content
Notes
Last updated

