
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
denoやNode.jsでNCMB(ニフクラ mobile backend)を使うためのSDKです。非公式ライブラリになります。TypeScriptなので入力サジェストが利用できます。
denoでNCMB(ニフクラ mobile backend)を使うためのSDKです。非公式ライブラリになります。Node.js × TypeScript環境でも動作します。
mBaaSでサーバー開発不要! | ニフクラ mobile backend
denoをインストールします。
オブジェクトを保存するコードです。 test.ts として保存してください。
import NCMB, { NCMBObject, NCMBQuery, NCMBInstallation, NCMBUser } from 'https://raw.githubusercontent.com/goofmint/ncmb_deno/master/deno/ncmb.ts'
// 初期化
new NCMB('YOUR_APPLICATION_KEY', 'YOUR_CLIENT_KEY')
// オブジェクト作成
const hello = new NCMBObject('HelloDeno')
// 値を設定して保存
await hello
- .set('message', 'Hello world')
- .set('number', 100)
- .save()
// 保存できていればオブジェクトIDが出力されます
console.log(hello.get('objectId'))
// ACLの使い方
const acl = new NCMBAcl()
acl
- .setPublicReadAccess(true)
- .setPublicWriteAccess(false)
const hello2 = new NCMBObject('HelloDeno')
await hello2
- .set('message', 'Hello world')
- .set('number', 100)
- .set('acl', acl)
- .save()
ACLは次のメソッドがあります。
Denoの場合
--allow-net は必須です。 --allow-read は設定ファイルを読み込む際に必須です。
deno run --allow-net --allow-read test.ts
npmなどで行います。
npm install ncmb_ts -S
基本的に使い方は変わりませんが、ルートでのasync/awaitはサポートされていないので注意してください。
import { NCMB, NCMBObject, NCMBQuery, NCMBInstallation, NCMBUser } from 'ncmb_ts'
const ncmb = new NCMB('YOUR_APPLICATION_KEY', 'YOUR_CLIENT_KEY')
const hello = new NCMBObject('HelloDeno');
(async () => {
await hello
.set('message', 'Hello world')
.set('number', 100)
.save()
console.log(hello.get('objectId'))
await hello
.set('number', 200)
.save()
console.log(hello.get('number'))
const query = ncmb.Query('HelloDeno')
query.equalTo('objectId', 'ypk03ZHeJxjSnSM1')
query.limit(1)
const results = await query.fetchAll()
console.log(results)
})();
VS Codeなどで入力補完が使えます。


const query = new NCMBQuery('QueryTest');
const results = await query.in('array', ['c']).fetchAll()
console.log(results.length)
console.log(results[0].get('objectId'))
利用できるオペランド
const d = new NCMBObject('HelloDeno')
await d
.set('objectId', 'DPnmQfMGTMuSS44Q')
.fetch()
hello.delete()
const user = await NCMBUser.singUp('tester', 'tester')
会員登録メール要求を呼び出します。
await NCMBUser.requestSignUpEmail('tester@moongift.jp')
const user = await NCMBUser.login('tester', 'tester')
const emailLogin = await NCMBUser.loginWithEmail(mailAddress, password)
const anony = await NCMBUser.loginAsAnonymous()
await user
.set('displayName', 'Test user')
.save();
await NCMBUser.logout()
await NCMBUser.requestPasswordReset(mailAddress)
await user.delete()
const installation = new NCMBInstallation
await installation
- .set('deviceToken', 'aaaa')
- .set('deviceType', 'android')
- .save();
await installation
- .set('deviceToken', 'bbbb')
- .save();
await installation.delete();
NCMBGeoPointを使います。
const geo = new NCMBGeoPoint(35.0, 100.0);
const hello = new NCMBObject('HelloDeno')
await hello
.set('message', 'Hello world')
.set('number', 100)
.set('acl', acl)
.set('hello1', hello)
.set('geo', geo)
.save()
MIT.
FAQs
denoやNode.jsでNCMB(ニフクラ mobile backend)を使うためのSDKです。非公式ライブラリになります。TypeScriptなので入力サジェストが利用できます。
We found that ncmb_ts 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.